Skip to content

Commit

Permalink
works with static rather than media
Browse files Browse the repository at this point in the history
  • Loading branch information
superdmp committed May 31, 2011
1 parent 57bbf52 commit 5a06350
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 7 deletions.
12 changes: 6 additions & 6 deletions widgetry/fk_lookup/widgets.py
Expand Up @@ -100,14 +100,14 @@ def render(self, name, value, attrs=None, extra_context={}):

class Media:
css = {
'all': ('/media/widgetry/jquery.fkautocomplete.css',)
'all': ('/static/widgetry/jquery.fkautocomplete.css',)
}
js = (
'/media/cms/js/lib/jquery.js',
'/media/javascript/jquery/external/bgiframe/jquery.bgiframe.min.js',
'/media/javascript/jquery/external/jquery-autocomplete/lib/jquery.ajaxQueue.js',
'/media/javascript/jquery/external/jquery-autocomplete/jquery.autocomplete.js',
'/media/widgetry/jquery.fkautocomplete.js',
'/static/cms/js/lib/jquery.js',
'/static/jquery/external/bgiframe/jquery.bgiframe.min.js',
'/static/jquery/external/jquery-autocomplete/lib/jquery.ajaxQueue.js',
'/static/jquery/external/jquery-autocomplete/jquery.autocomplete.js',
'/static/widgetry/jquery.fkautocomplete.js',
)

class GenericFkLookup(FkLookup):
Expand Down
Binary file added widgetry/static/widgetry/indicator.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 2 additions & 1 deletion widgetry/tabs/admin.py
Expand Up @@ -11,6 +11,7 @@
from django.utils.safestring import mark_safe
from django.utils.translation import ugettext as _
from django.views.decorators.csrf import csrf_protect
from cms.admin.placeholderadmin import PlaceholderAdmin

try:
set
Expand Down Expand Up @@ -135,7 +136,7 @@ def _media(self):



class ModelAdminWithTabs(admin.ModelAdmin):
class ModelAdminWithTabs(PlaceholderAdmin):
tabs = []

@csrf_protect_m
Expand Down

0 comments on commit 5a06350

Please sign in to comment.