Ok, thanks. I guess it's one more thing to look forward to in 1.1 :) ________________________________________ From: django-users@googlegroups.com [django-us...@googlegroups.com] On Behalf Of alex.gay...@gmail.com [alex.gay...@gmail.com] Sent: Thursday, 29 January 2009 11:59 AM To: Django users Subject: Re: admin_perm_test decorator?
On Jan 28, 7:49 pm, Ian Cullinan <ian.culli...@nicta.com.au> wrote: > The docs > athttp://docs.djangoproject.com/en/dev/ref/contrib/admin/#protecting-cu...say > to use the "decorator provided in django.contrib.admin.utils.admin_perm_test" > to protect custom AdminSite and ModelAdmin views, but it doesn't exist (in > 1.0, at least): Arg, that shouldn't be there and it's incorrect. Apparently that's another thing that slipped through the cracks when Jacob and I did #6470. In any event take a look at how the URLs are protected: http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/sites.py#L151 and http://code.djangoproject.com/browser/django/trunk/django/contrib/admin/options.py#L203 Until we get the right docs bit back in(FYI this only applies to trunk, 1.0 doesn't have any of this). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---