Re: How to edit model.py and serializer so I can recieve contact":{"name":"asdf","email":"m...@email.com","phone":"1111111111"}}

2018-10-31 Thread Krishnasagar Subhedarpage
Hi Tim, IMHO, you can change angular's request body as per model defined in app so that, serializer can validate and save into table. Regards, Krishna On Wed, 31 Oct 2018 at 15:11, Tim Vogt wrote: > Hi group ;-) > > I have a little challenge. > > We have a frontend angular api. Wich sinds

How to edit model.py and serializer so I can recieve contact":{"name":"asdf","email":"m...@email.com","phone":"1111111111"}}

2018-10-31 Thread Tim Vogt
Hi group ;-) I have a little challenge. We have a frontend angular api. Wich sinds data to my django backend from an input form. And Contact in the frontend How to just my serializer / models file right so the contact data is in my database? contact?: { name: string; email: string; phone: