Model Related Issue

16 views
Skip to first unread message

Soumen Khatua

unread,
Jul 27, 2019, 1:48:59 PM7/27/19
to django...@googlegroups.com
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

Pradeep Sukhwani

unread,
Jul 28, 2019, 4:28:01 AM7/28/19
to Django users
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.
Reply all
Reply to author
Forward
0 new messages