Skip to main content

Django admin helper classes for django-taggit tags

Project description

django-taggit-helpers makes it easier to work with admin pages of models associated with django-taggit tags.

Source code is available on GitHub at mfcovington/django-taggit-helpers. Information about django-taggit is available on GitHub and Read the Docs.

django-taggit-helpers is compatible with Python 2.7+/3.2+ and Django 1.7+.



pip install django-taggit-helpers


pip install


Add taggit_helpers to INSTALLED_APPS in


Helper Classes


Display (and sort by) number of Taggit tags associated with tagged items.

from taggit_helpers import TaggitCounter

class MyModelAdmin(TaggitCounter, admin.ModelAdmin):    # TaggitCounter before ModelAdmin
    list_display = (

Note: Currently, the TaggableManager() field must be named tags.

Note: To avoid overcounting, set distinct=True if further annotating the queryset with Count():

queryset.annotate(m2m_field_count=Count('m2m_field', distinct=True))


Filter records by Taggit tags for the current model only. Tags are sorted alphabetically by name.

from taggit_helpers import TaggitListFilter

class MyModelAdmin(admin.ModelAdmin):
    list_filter = [TaggitListFilter]


Add stacked inline for Taggit tags to admin. Tags are sorted alphabetically by name.

from taggit_helpers import TaggitStackedInline

class MyModelAdmin(admin.ModelAdmin):
    inlines = [TaggitStackedInline]


Add tabular inline for Taggit tags to admin. Tags are sorted alphabetically by name.

from taggit_helpers import TaggitTabularInline

class MyModelAdmin(admin.ModelAdmin):
    inlines = [TaggitTabularInline]


If you experience any problems or would like to request a feature, please create an issue on GitHub.

Version 0.1.3

Revision history

0.1.3 2015-11-30

  • Require Python 2.7+/3.2+
  • Add slides from Django SF Meetup lightning talk

0.1.2 2015-06-14

  • Add Django 1.8 compatibility

0.1.1 2015-06-11

  • Rename taggit_count to taggit_counter

0.1.0 2015-06-10

  • Django admin helper classes for django-taggit tags
    • TaggitCounter
    • TaggitListFilter
    • TaggitStackedInline
    • TaggitTabularInline

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-taggit-helpers, version 0.1.3
Filename, size File type Python version Upload date Hashes
Filename, size django_taggit_helpers-0.1.3-py2.py3-none-any.whl (5.9 kB) File type Wheel Python version 3.4 Upload date Hashes View hashes
Filename, size django-taggit-helpers-0.1.3.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page