Pass post data to UpdateView

42 views
Skip to first unread message

MH

unread,
Apr 26, 2020, 9:01:04 AM4/26/20
to Django users
Hi

I do not know how to access request.POST, when I call UpdateView. Just to avoid a misunderstanding: I do not want to process the data after updating a model, but I want to pass a parameter to the UpdateView, which is not model related when the page opens.

But I get a NameError that request is not defined. How can I make the POST data accessible?

Thanks!

Darren Williams

unread,
Apr 26, 2020, 10:38:02 PM4/26/20
to django...@googlegroups.com
Ain't really sure learning myself but I look into it for you

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0e13ecd0-93f9-4847-a93b-2439efe277ee%40googlegroups.com.

Darren Williams

unread,
Apr 26, 2020, 10:38:14 PM4/26/20
to django...@googlegroups.com
Talk to me

Reply all
Reply to author
Forward
0 new messages