[英]Tags doesn't created with django-taggit
I using django-taggit and I have a problem with creation tags field with next code: 我使用的是django-taggit,下一个代码的创建标签字段存在问题:
tags = TaggableManager()
All other fields from model are created. 从模型创建所有其他字段。 But tags don't :( I tried with Django1.7.1 and 1.7.2, also with db's sqLite and MySql. 但是标签不是:(我尝试使用Django1.7.1和1.7.2,也尝试使用db的sqLite和MySql。
In migrations is created 在迁移中创建
('tags', taggit.managers.TaggableManager(to='taggit.Tag', through='taggit.TaggedItem', help_text='A comma-separated list of tags.', verbose_name='Tags'))
but why it doesnt apply... I don't know. 但是为什么它不适用...我不知道。 Somebody has a idea? 有人有主意吗?
选项through='taggit.TaggedItem'
表示存在用于多对多关系的单独表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.