python - Django-Grappelli: Reverse for 'grp_related_lookup' with arguments '()' and keyword arguments '{}' not found -
i use django-grappelli create orderable inlines on admin site. (not reproducibly - 50% of time, particularly weird), django throws following exception when try save ordering inline:
exception type: noreversematch exception value: reverse 'grp_related_lookup' arguments '()' , keyword arguments '{}' not found. exception location: /usr/local/lib/python2.7/dist-packages/django/template/defaulttags.py in render, line 424
the offending line this:
$("#id_" + this).grp_related_fk({lookup_url:"{% url 'grp_related_lookup' %}"});
as per advice given in this related thread, i've tried testing in shell, seems work fine:
>>> django.core.urlresolvers import reverse >>> print reverse('grp_related_lookup') /grappelli/lookup/related/
i'm @ loss. has made similar experience?
django version 1.5.1.
you forgot add grappelli urls urls.py (at least case me)
url(r'^grappelli/', include('grappelli.urls')),
Comments
Post a Comment