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.