Skip to main content
https://badge.fury.io/py/django-sitecats-helpers.svg https://img.shields.io/pypi/pyversions/django-sitecats-helpers.svg https://img.shields.io/pypi/djversions/django-sitecats-helpers.svg https://github.com/bashu/django-sitecats-helpers/actions/workflows/test.yml/badge.svg

Django admin helper classes for django-sitecats categories.

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

Installation

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

pip install django-sitecats-helpers

Setup

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

Then add the following settings:

INSTALLED_APPS += (
    'sitecats_helpers',
)

Usage

CategoryCounter

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 = (
        ...
        'category_counter',
    )

CategoryListFilter

Filter records by categories for the current model only.

from sitecats_helpers.admin import CategoryListFilter

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

CategoryStackedInline

Add stacked inline for categories to admin.

from sitecats_helpers.admin import CategoryStackedInline

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

CategoryTabularInline

Add tabular inline for categorise to admin.

from sitecats_helpers.admin import CategoryTabularInline

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

Contributing

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

License

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

Changes

1.1.0 (2026-08-14)

  • Dropped Python 3.6-3.9 support; now requires Python 3.10-3.14.

  • Dropped Django 2.2-3.2 support; now requires Django 5.2-6.1.

  • Require django-sitecats>=1.2.2 explicitly (Django 4+ support was introduced there; dependency was previously unpinned).

1.0.1 (2021-11-30)

  • Add missing mo files.

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.1.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_sitecats_helpers-1.1.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file django_sitecats_helpers-1.1.0.tar.gz.

File metadata

  • Download URL: django_sitecats_helpers-1.1.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for django_sitecats_helpers-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d44ed63f519282ad5b972472444816cc4dffb31bfa27b31483ba072b879f34ab
MD5 4c74912fcc7bd1ab418e8b26b45d3f0f
BLAKE2b-256 a3f217334424e736f9f0dc221a42bf9e7ebd58e40c6fbe1c539ab2b8b17c7e68

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_sitecats_helpers-1.1.0.tar.gz:

Publisher: release.yml on bashu/django-sitecats-helpers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_sitecats_helpers-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_sitecats_helpers-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 cb7bf5639af480aca65ac2d6194e4b4d22fdf7214f092c7556215692089b0124
MD5 5d977a38285aa08db265c9edf76b6c66
BLAKE2b-256 aefadb9291ef861d9bb356398f9909f5f470d3f41b9e7f07b843952bfd077817

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_sitecats_helpers-1.1.0-py3-none-any.whl:

Publisher: release.yml on bashu/django-sitecats-helpers

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

1.0.1

2 files

1.0.0

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page