I want to create a custom tag that includes a description field that will be applied to multiple models such as articles, projects, etc
I get a error message when trying to add an eTag in the admin panel
FieldDoesNotExist at /admin/ecore/etag/add/
eTag has no field named u'content_type'
What I currently have is this:
from django.db import models
from taggit.models import TaggedItemBase
from django.contrib.contenttypes.generic import GenericForeignKey
# Create your models here.
class eTag(TaggedItemBase):
content_object = GenericForeignKey()
description_markdown = models.TextField(
verbose_name = 'Description (Markdown)',
And use it like so on an "article" model:
tags = TaggableManager(through=eTag)
My problem may just be that I am using "GenericForeignKey()" but that is what the GenericTaggedItemBase() uses so I assume it is fine.
How do I set up a custom tag model that allows a description that can be used for tagging multiple models?
Thanks, Eric