On Tue, Jul 28, 2009 at 06:05:25AM -0700, Daniel Roseman wrote:
> Your 'view' URL doesn't take args, it takes kwargs. So the lookup
> should be:
>     return ('view', (), {'object_id': self.id})

Is this documented anywhere? I looked through the official documentation at
<http://docs.djangoproject.com/en/dev/ref/models/instances/> and couldn't see
how to use kwargs with permalink, except for "and (optionally) a dictionary of
named parameters" (which I initially missed). I never considered adding kwargs
after the args, my attempt to pass kwargs instead of args (which doesn't work
- seems so obvious now...).

I think django is great, unfortunately sometimes the documentation is lacking.
-- 
Brian May <[email protected]>

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