Wednesday, March 28, 2018

displaying fields through foreign key tables

Hello, 

In a django admin site, I am trying to display the attribute of an element that is not part of the element, but instead is linked by a foreign key.

For example, I have a Product that is part of a Product Line that is part of a Brand that is part of a Company. I want to display the name of the Company when I go to inspect a Product.

Please reply me as soon as possible. 

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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/6b006b15-ecd0-48f9-8345-61ffc1207cf3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment