Getting a
NoReverseMatch at /admin/r/14/1/ on a model in Admin
Here's the traceback:
Traceback:
File "/home/queryclick/webapps/django/lib/python2.5/django/core/
handlers/base.py" in get_response
86. response = callback(request, *callback_args,
**callback_kwargs)
File "/home/queryclick/webapps/django/lib/python2.5/django/contrib/
admin/sites.py" in root
154. return shortcut(request, *url.split('/')[1:])
File "/home/queryclick/webapps/django/lib/python2.5/django/contrib/
contenttypes/views.py" in shortcut
15. absurl = obj.get_absolute_url()
File "/home/queryclick/webapps/django/lib/python2.5/django/utils/
functional.py" in _curried
55. return _curried_func(*(args+moreargs), **dict(kwargs,
**morekwargs))
File "/home/queryclick/webapps/django/lib/python2.5/django/db/models/
base.py" in get_absolute_url
515. return settings.ABSOLUTE_URL_OVERRIDES.get('%s.%s' %
(opts.app_label, opts.module_name), func)(self, *args, **kwargs)
File "/home/queryclick/webapps/django/lib/python2.5/django/db/models/
__init__.py" in inner
30. return reverse(bits[0], None, *bits[1:3])
File "/home/queryclick/webapps/django/lib/python2.5/django/core/
urlresolvers.py" in reverse
254. *args, **kwargs)))
File "/home/queryclick/webapps/django/lib/python2.5/django/core/
urlresolvers.py" in reverse
243. "arguments '%s' not found." % (lookup_view,
args, kwargs))
Exception Type: NoReverseMatch at /admin/r/14/1/
Exception Value: Reverse for 'product_detail' with arguments '()' and
keyword arguments '{'id': 1L}' not found.
I do have a custom save method in there and a get_absolute_url defined
as:
def get_absolute_url(self):
return 'products/%s/' % (self.id)
I might not be offering up much info here but if someone might give me
a few pointers as to where to look to debug that would be great!
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---