That is most definitely the smartest way to do it, however we are
still stuck on Python 2.3 at my work. I suppose I may need to rely on
my hack until the powers that be see fit to upgrade to 2.5 or 3.0 or
whatever.

On Dec 26, 4:56 pm, "Patryk Zawadzki" <[EMAIL PROTECTED]> wrote:
> 2007/12/26, kevinski <[EMAIL PROTECTED]>:
>
>
>
> > Not sure how useful this would be to the majority, but I discovered a
> > need for user authentication when using the Simple Generic Views, so I
> > had to add the Login_Required argument to views.generic.simple. I
> > would like to recommend this tweak be added.
>
> Generic views are just regular methods so it would be easier to create
> a one line wrapper calling the original and decorate it with
> @login_required
>
> --
> Patryk Zawadzki
> PLD Linux Distribution
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to