Dominique Guardiola Falco
unread,Dec 10, 2011, 8:57:00 AM12/10/11Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to django...@googlegroups.com
Found some related questions on the google groupe, here's where I am now :
from taggit.models import Tag, GenericTaggedItemBase
class LabelledItem(GenericTaggedItemBase):
pass
class Label(Tag):
language = models.CharField(_(u'language'),max_length=10, choices=LANG_LABELS, default='fr')
user = models.ForeignKey(User,blank=True,null=True,verbose_name=_(u'django user'),editable=False)
concept = models.ForeignKey(Concept,blank=True,null=True,verbose_name=_(u'main concept'))
and on another model :
class BaseInitiative(models.Model):
tags = TaggableManager(through=LabelledItem)
But this throws an error "LabelledItem has no field named 'tag'"
From what I understand, the "tag" field is only defined in TaggedItemBase, why should I define it if I want to stay with the GFK through model ?