I've set up django-taggit and it's working fine, all tags are listed under tags in admin.
However, I now want to separate my tags into 2 groups, english tags, and spanish tags.
This is what I have, from the documentation here:
class EnTagged(TagBase):
class Meta:
verbose_name = "English Tag"
verbose_name_plural = "English Tags"
class EnglishTags(GenericTaggedItemBase):
tag = models.ForeignKey(EnTagged)
class Blog(models.Model):
en_tags = TaggableManager(blank=True, through=EnglishTags)
(Edit) now tagging works fine, but in temrs of the tags being in the right db tables, but I don't see my custom tags in the admin - how do i show my custom tags in the admin?
Where am I going wrong?
Create a admin.py
file and put it inside your app and add following lines in it:
from django.contrib import admin
from .models import EnTagged
admin.site.register(EnTagged)