On Tue, May 26, 2009 at 3:41 PM, Sieker Adi Jörg <a...@sieker.info> wrote:
> > Hi, > > I'm implementing some new urls in my ModelAdmin.get_urls method and > I need access to the current models instance or id. > I didn't find anything in the ModelAdmin docs, but maybe I'm just blind. > > Any pointers in the right direction would be nice. > > Thanks > Adi > > > > There is no specific instance of the model in get_urls(). This is generating the urls for any and all views that the model admin will have, just like your urls.py file doesn't know what instance you have. Alex -- "I disapprove of what you say, but I will defend to the death your right to say it." --Voltaire "The people's good is the highest law."--Cicero --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---