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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
Get request object in class based generic view and form
Hi, I'm trying to put up a modelform for users to edit their 'projects'. But I can't figure out how I can retrieve the request object in the class based generic view. I need it to verify the user. Also, when the form is submitted, I want to re-verify the user once again to make sure his authenticated. Anyone have a clue? -- 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.