Sunday, July 28, 2019

Re: Model Related Issue

You can always use serializers. Have a look at declaring serializers and then you can call that serializer in your APIView. If this doesn't help then share your code.

On Saturday, July 27, 2019 at 11:18:59 PM UTC+5:30, Soumen Khatua wrote:
Hi Folks,
I created one Address model and I extended Profile model by using OnetoOneField of User and this Address model. But in get method  I want to provide User model email,username and Address model state and Profile model all details,How I can do that ny using Django Rest Framework. 
Please help me guys,It's Urgent??


Thank You

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/99ac7359-eb29-4040-92fc-e7666933aecf%40googlegroups.com.

No comments:

Post a Comment