--
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.
For more options, visit https://groups.google.com/groups/opt_out.
Mmm... I'm not sure if I am understanding you, did you mean to have a field like "relmodel_id"?
On Wed, Dec 11, 2013 at 3:20 PM, Tim Nelson <tim...@gmail.com> wrote:
I have seen that model.object.all() will get all fields including those in foreign key tables.I have a simple Inventory model that references by foreign key and Item model. My ViewSet inherits from ModelViewSet, but when I do a list on the view set only the foreign key PK is returned not the actual foreign key fields.Is there a way to get the foreign key fields returned?
--
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.
To unsubscribe from this group and stop receiving emails from it, send an email to django-rest-fram...@googlegroups.com.