Re: Hey, can anybody tell me that how to get author name instead of author ID

18 views
Skip to first unread message
Message has been deleted

DIPENDRA BHATT

unread,
Jul 5, 2020, 1:17:34 PM7/5/20
to django-res...@googlegroups.com
Though it would have been better if you would had added the code and described the issue in detail. But I can assume here you probably wanna use SlugRelatedField in serializer in place of Primary key related field which you have presently, either due to you using ModelSerializer or you explicitly adding it.

On Sun, Jul 5, 2020, 10:26 PM Suryansh Mathur <sharm...@gmail.com> wrote:
can anybody tell me that how to get author name instead of author ID.

Please See Attached Screenshot

--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-rest-framework/f698c1e9-5ece-4ca4-ac4d-c36145bed7fao%40googlegroups.com.

Suryansh Mathur

unread,
Jul 5, 2020, 1:21:06 PM7/5/20
to Django REST framework
can you tell me which file do i have to upload ?


On Sunday, 5 July 2020 22:47:34 UTC+5:30, DIPENDRA BHATT wrote:
Though it would have been better if you would had added the code and described the issue in detail. But I can assume here you probably wanna use SlugRelatedField in serializer in place of Primary key related field which you have presently, either due to you using ModelSerializer or you explicitly adding it.

On Sun, Jul 5, 2020, 10:26 PM Suryansh Mathur <sharm...@gmail.com> wrote:
can anybody tell me that how to get author name instead of author ID.

Please See Attached Screenshot

--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-framework+unsub...@googlegroups.com.

naveen Kumar

unread,
Jul 6, 2020, 11:07:28 AM7/6/20
to django-res...@googlegroups.com
Send the screen shot of code along with serialised n model 

On Sun, 5 Jul 2020, 10:26 pm Suryansh Mathur, <sharm...@gmail.com> wrote:
can anybody tell me that how to get author name instead of author ID.

Please See Attached Screenshot

--
You received this message because you are subscribed to the Google Groups "Django REST framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages