Solve Django Grappelli Delete or Action dropdown menu doesn’t works


Apparently, Django-grappelli action menu drop-down doesn’t works with default Django 1.4. I tried select item and go to drop-down menu to delete that, but nothing happened.

This is errors from Firebug:

1
2
 $("tr input.action-select").actions();
TypeError: $(…).actions is not a function

And the problem apparently located in STATIC_FILEFINDER which FILESYSTEM finder above AppDirectoriesFinder.

This is the solution:

1
2
3
4
5
6
7
# List of finder classes that know how to find static files in
# various locations.
STATICFILES_FINDERS = (
    ‘django.contrib.staticfiles.finders.AppDirectoriesFinder’,
    ‘django.contrib.staticfiles.finders.FileSystemFinder’,
#    ‘django.contrib.staticfiles.finders.DefaultStorageFinder’,
)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.