Re: Pass post data to UpdateView

2020-04-26 Thread Darren Williams
Talk to me


On Sun, Apr 26, 2020, 18:18 Darren Williams  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+unsubscr...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHoC8YUdsivCdRpqYtQw0Zr7pQzDYPy9pbPSFW6FHaBNCcunwA%40mail.gmail.com.


Re: Pass post data to UpdateView

2020-04-26 Thread Darren Williams
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+unsubscr...@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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHoC8YW-Ha74RepLXeAaAmmsV57OKZTRXsaikf1uA35EZMctDg%40mail.gmail.com.


Pass post data to UpdateView

2020-04-26 Thread 'MH' via 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!

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