I'm trying to find out what is the reverse url sentence for the "admin list"
of a specific model of an app. Suppose that we have an app called 'invoice'
and this has a model also called 'invoice'. I want to get this url:
"/admin/invoice/invoice" via reverse function. Something like :

>>> reverse('admin:invoice_invoice_add')
'/admin/invoice/invoice/add/'

but with expected reverse('admin:invoice_invoice') it doesn't work :(

>>> reverse('admin:invoice_invoice')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py", line
390, in reverse
    *args, **kwargs)))
  File "/usr/lib/python2.6/dist-packages/django/core/urlresolvers.py", line
336, in reverse
    "arguments '%s' not found." % (lookup_view_s, args, kwargs))
NoReverseMatch: Reverse for 'invoice_invoice' with arguments '()' and
keyword arguments '{}' not found.

Any idea?


-- 
Marc

-- 
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.

Reply via email to