Hi, do you mean in the GET request, the user provides the pk (perhaps in
URL) or the server sends to users an object where pk is a field?
If it's the former, then @George's answer is the right one. An example of
what you are trying to achieve will be helpful.
Best
Zheng
On Tue, Jul 21, 2020 at 1
You use request.GET['choice_filed']
On Monday, July 20, 2020 at 9:14:48 AM UTC+5:30, Arpana Mehta wrote:
>
> Hi,
> I have a class with a GET and a POST request. I am sending the data ( with
> pk of the object ) in my GET request and I want the frontend to use that pk
> to refer to the exact inst
Hi,
I have a class with a GET and a POST request. I am sending the data ( with
pk of the object ) in my GET request and I want the frontend to use that pk
to refer to the exact instance of the model whenever doing any operation.
In my POST request I am only sending the `choice field` value. How do
3 matches
Mail list logo