Commits

Steve Losh  committed 3b31ebd

Clean up some unnecessary javascript (Grappelli bundles it).

  • Participants
  • Parent commits 6b89b0c

Comments (0)

Files changed (2)

File autocomplete/admin.py

-from django.db import models
-from django.contrib import admin
 from django.conf import settings
-from django.core.urlresolvers import reverse
 
 from autocomplete import widgets
 from autocomplete.views import autocomplete as default_view
                 return self.autocomplete_formfield(db_field, **kwargs)
         return super(AutocompleteAdmin, self).formfield_for_dbfield(db_field, **kwargs)
 
-    def _media(self):
-        # little hack to include autocomplete's js before jquery.init.js
-        media = super(AutocompleteAdmin, self).media
-        media._js.insert(3, settings.AUTOCOMPLETE_MEDIA_PREFIX + 'js/jquery-ui.min.js')
-        return media
-    media = property(_media)
 
     def _autocomplete_view(request, field):
         info = self.model._meta.app_label, self.model._meta.module_name, field

File autocomplete/widgets.py

     
     class Media:
         js = tuple(settings.AUTOCOMPLETE_MEDIA_PREFIX + js for js in (
-            'js/jquery.min.js',
-            'js/jquery-ui.min.js',
             'js/jquery_autocomplete.js',
         ))
         css = {'all':