Due to nested object its giving error when passed to serializer , but i 
will try this.

On Friday, October 11, 2019 at 7:29:26 PM UTC+5:30, gaurav jain wrote:
>
> You can not modify the request.data object.
> You can save it in a different variable and use that
> Regards
> Gaurav Jain
> crazcu...@gmail.com/9971594094
>
> On Fri, 11 Oct, 2019, 7:20 PM laxmikanta nayak, <laxmikant...@gmail.com 
> <javascript:>> wrote:
>
>> Hi,
>>
>> I am passing {message: 'here'} to a rest api then in rest api before 
>> saving to the db i want to modify it to {message:'here it it'}. at which 
>> step should i do the modification:
>> after reading from request.data using json dump and loads , or there is a 
>> way to modify the serializer.data ?
>>
>> -- 
>> 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...@googlegroups.com <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/django-users/c69968e2-ebf3-4573-bc08-18306b327eaf%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/django-users/c69968e2-ebf3-4573-bc08-18306b327eaf%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
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/7205d20b-7cd1-4ef2-8c2b-745767969bf7%40googlegroups.com.

Reply via email to