Re: Get request object in class based generic view and form
Hello Simon,
> But I can't figure out how I can retrieve the request object in the class
> based generic view.
As far as I understand just get it from self.request.
> I want to re-verify the user once again to
> make sure his authenticated.
>
I always do it the way it's recommended in the docs, by decorating the
the dispatch() method:
http://docs.djangoproject.com/en/dev/topics/class-based-views/#decorating-class-based-views
Isn't that sufficient?
Regards Roman
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home