2024-03-28 22:36:40 发布
网友
我用的是django标签。当我想要一个模型的标签集合时,它工作得很好。但现在我需要使用两个不同的集合,就像这样:
class Compare(models.Model): title = models.CharField(max_length=255) left_tags = TagField() right_tags = TagField()
有可能用标签吗?我希望有人有一个例子,并分享它!谢谢!:)
TagField是否使用可选的related_name属性?在
related_name
https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.related_name
我自己从来没有用过这个应用程序,但这是解决这个问题的django式方法。在
TagField是否使用可选的
related_name
属性?在https://docs.djangoproject.com/en/dev/ref/models/fields/#django.db.models.ForeignKey.related_name
我自己从来没有用过这个应用程序,但这是解决这个问题的django式方法。在
相关问题 更多 >
编程相关推荐