Sunday, April 26, 2020

Re: Pass post data to UpdateView

Talk to me


On Sun, Apr 26, 2020, 18:18 Darren Williams <daw2043809876@gmail.com> wrote:
Ain't really sure learning myself but I look into it for you

On Apr 26, 2020 8:02 AM, "'MH' via Django users" <django-users@googlegroups.com> wrote:
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!

--
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+unsubscribe@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.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAHoC8YUdsivCdRpqYtQw0Zr7pQzDYPy9pbPSFW6FHaBNCcunwA%40mail.gmail.com.

No comments:

Post a Comment