How do you access a ForeignKey's other attribute in Django?

后端 未结 0 1578
死守一世寂寞
死守一世寂寞 2021-01-22 14:57

I\'ve been looking for a way to retrieve a model\'s attribute via ForeignKey(related_name). I\'m going to paste the code below. Django version is 3.1, while Python version is 3.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题