モデル内の複数のタグに対する適切な回答または解決策が見つかりませんでした。私が近くに見つけた唯一のものはこれでした:
小文字の単語のみを受け入れるように django-taggit を制限するにはどうすればよいですか?
ここに私の現在のコードがあります:
from taggit.managers import TaggableManager
from taggit.models import TaggedItemBase
class TaggedStory(TaggedItemBase):
content_object = models.ForeignKey("Story")
class TaggedSEO(TaggedItemBase):
content_object = models.ForeignKey("Story")
class Story(models.Model):
...
tags = TaggableManager(through=TaggedStory, blank=True, related_name='story_tags')
...
seo_tags = TaggableManager(through=TaggedSEO, blank=True, related_name='seo_tags')