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

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -