Conditionally calling __str__ in models.py in accordance to the “related_name” Django

前端 未结 0 1803
你的背包
你的背包 2020-12-09 18:21

Okay so here is my models.py first:

class UserFollowing(models.Model):
    user = models.ForeignKey(CustomUser, related_name="following"         


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