Using tags in the adminΒΆ

By default if you have a TaggableManager on your model it will show up in the admin, just as it will in any other form. One important thing to note is that you cannot include a TaggableManager in ModelAdmin.list_display, if you do you’ll see an exception that looks like:

AttributeError: 'TaggableManager' object has no attribute 'flatchoices'

This is for the same reason that you cannot include a ManyToManyField, it would result in an unreasonable number of queries being executed. If you really would like to add it, you can read the Django documentation.

Project Versions

Previous topic

Tags in forms

Next topic


This Page