This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| valueMatches : function(facet, searchTerm, callback) { | |
| if('results' in facets.raw[facet]){ | |
| callback(facets.raw[facet].results); | |
| } else{ | |
| var app_label = facets.raw[facet].app_label, | |
| model = facet; | |
| // TODO: don't pound the server | |
| $.getJSON("/admin/" + app_label + "/" + model + "/search/", {q: searchTerm}, function(data) { | |
| facets.raw[facet].results = data.results; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Traceback (most recent call last): | |
| File "/home/stuart/armstrong/dev/bin/armstrong", line 8, in <module> | |
| load_entry_point('armstrong.cli==1.0.1', 'console_scripts', 'armstrong')() | |
| File "/home/stuart/armstrong/dev/lib/python2.6/site-packages/armstrong/cli/main.py", line 91, in main | |
| func(argv=argv, **kwargs) | |
| File "/home/stuart/armstrong/dev/lib/python2.6/site-packages/armstrong/cli/main.py", line 113, in call_django | |
| execute_manager(settings, argv=new_argv) | |
| File "/home/stuart/armstrong/dev/lib/python2.6/site-packages/django/core/management/__init__.py", line 438, in execute_manager | |
| utility.execute() | |
| File "/home/stuart/armstrong/dev/lib/python2.6/site-packages/django/core/management/__init__.py", line 379, in execute |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Content(ContentBase): | |
| headline = models.CharField((u'Homepage headline'), max_length=255, blank=True, null=True) | |
| placement_category = models.ForeignKey(Category, blank=True, null=True) | |
| published_objects = PublishedManager() | |
| class Meta: | |
| verbose_name_plural = "Content" | |
| ordering = ['-pub_date'] |
NewerOlder