Re: File in nested serializer

2021-06-20 Thread narendra thapa
class CompanySerializer(serializers.ModelSerializer): company_contact = CompanyContactDetailsGet(many=True,required=False) company_logo_details = CompanyLogoGet(many=True,required=False) class Meta: model = company_details fields = ('id','company_name','company_address'

Re: File in nested serializer

2021-06-15 Thread Nikeet NA
Can you show me your nested serializer code. On Wed, 16 Jun 2021 at 06:07, narendra thapa wrote: > Actual problem is nested serializer is not accepting a QueryDIct data it > accepts only the parent data and delete the child automatically. when i > parse the QueryDIct data to JSON json.dumps() it

Re: File in nested serializer

2021-06-15 Thread narendra thapa
Actual problem is nested serializer is not accepting a QueryDIct data it accepts only the parent data and delete the child automatically. when i parse the QueryDIct data to JSON json.dumps() it will accept the child one but problem here is json.dumps() cannot convert InMEmoryField data type. So wha

Re: File in nested serializer

2021-06-15 Thread narendra thapa
Actual problem is nested serializer is not accepting a QueryDIct data it accepts only the parent data and delete the child automatically. when i parse the QueryDIct data to JSON json.dumps() it will accept the child one but problem here is json.dumps() cannot convert InMEmoryField data type. So wha

Re: File in nested serializer

2021-06-15 Thread Nikeet NA
Use This Drf nested serializer On Tuesday, 15 June 2021 at 10:48:22 UTC+5:30 narendra...@gmail.com wrote: > Hi Folks, > I'm having a problem to insert a data in nested serializers with > FileField. If anybody know the idea of doing that would yo

File in nested serializer

2021-06-14 Thread narendra...@gmail.com
Hi Folks, I'm having a problem to insert a data in nested serializers with FileField. If anybody know the idea of doing that would you guys please just help me out. I googled it for the solution but found the problem asked but not a solution. And somewhere in git i found that it is hard to mange