Forwarding this here, because the problem would go away if we could get some attention on ticket #3185:
http://code.djangoproject.com/ticket/3185 ---------- Forwarded message ---------- From: Mike H <[EMAIL PROTECTED]> Date: Feb 7, 2007 6:16 AM Subject: passing arguments to the login_required decorator To: [email protected] Hi all, I am using the login_required decorator form django.contrib.auth.decorators, but I want to override the second argument which specified which url it should redirect to if the user is not logged in. I'm pretty new to python and everything I've tried so far has just resulted in a syntax or name error. The only solution I have working is to write my own decorator that calls the decorator in contrib.auth but that seems messy. How can I pass in the user to authenitcate and the login url arguments to the decorator directly? Thanks, Mike -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" 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-developers?hl=en -~----------~----~----~----~------~----~------~--~---
