我需要一个有几个“标签”字段的模型。models.Model): manufacturer = SomeTagField() 这可以使用多对多关系来完成,但我不确定这是否是一种正确的方法我试过django-tagit和它的TaggableManager,但没有成功: ValueError: You can't have two TaggableManagers with the same处理这个问题的
我有一个简单的博客应用程序,它包含带有Entry和ManyToManyField的模型,称为标记class Tag(models.Model):
name = models.CharField我还有一个过滤器类django_filters.rest_framework.FilterSet,它应该能够过滤包含的条目--传递给请求的唯一标记或标记+其他。如何实现FilterSet类<em