Skip to main content

django admin helper classes for django-sitecats categories

Project description

Django admin helper classes for django-sitecats categories.

Authored by Basil Shubin, inspired by django-taggit-helpers


First install the module, preferably in a virtual environment. It can be installed from PyPI:

pip install django-sitecats-helpers


First make sure the project is configured for django-sitecats.

Then add the following settings:




Display (and sort by) number of categories associated with objects.

from sitecats_helpers.admin import CategoryCounter

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


Filter records by categories for the current model only.

from sitecats_helpers.admin import CategoryListFilter

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


Add stacked inline for categories to admin.

from sitecats_helpers.admin import CategoryStackedInline

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


Add tabular inline for categorise to admin.

from sitecats_helpers.admin import CategoryTabularInline

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


If you like this module, forked it, or would like to improve it, please let us know! Pull requests are welcome too. :-)


django-sitecats-helpers is released under the MIT license.


1.0.0 (2021-11-29)

  • Added Django 3+ support.

  • Dropped Python 2.7 support.

  • Dropped Django 1.10 / 1.11 support.

Download files

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

Source Distribution

django-sitecats-helpers-1.0.0.tar.gz (4.8 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page