Hi Alex, On 26.05.2009, at 22:52, Alex Gaynor wrote:
> > > 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. > Doh, after a night's sleep.... Of course, makes sense. :) adi P.S.: Thank you for your non tiring contribution to this list. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---