Re: login_required decorator conflicts with admin documentation view

2007-01-05 Thread James Bennett
On 1/6/07, James Bennett <[EMAIL PROTECTED]> wrote: What's needed to actually make this work is for user_passes_test to copy over __module__ and __name__ from the decorated function to its internal _checklogin function, in addition to __doc__. Also, it's worth pointing out that this has actual

Re: login_required decorator conflicts with admin documentation view

2007-01-05 Thread James Bennett
On 1/6/07, Kenneth Gonsalves <[EMAIL PROTECTED]> wrote: On 06-Jan-07, at 11:32 AM, chasfs wrote: > Any suggestions other than removing the login_required decorator and > doing the work in each view? use user_passes_test - this has an option for adding the return url Unfortunately, that won't h

Re: login_required decorator conflicts with admin documentation view

2007-01-05 Thread Kenneth Gonsalves
On 06-Jan-07, at 11:32 AM, chasfs wrote: Any suggestions other than removing the login_required decorator and doing the work in each view? use user_passes_test - this has an option for adding the return url -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--

login_required decorator conflicts with admin documentation view

2007-01-05 Thread chasfs
I'm having a problem using the auto generated admin documentation for views, when the view has an @login_required decorator. Instead of linking to the doc for the view, the link is to: http://localhost:8000/admin/doc/views/django.contrib.admin.views.decorators._checklogin/ which is not found. A