Skip to main content

django-sitecats-helpers

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 (who is available for freelance/contract work), 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.2.1 (2026-11-12)

  • Switched build backend from setuptools to hatchling.

  • Moved package to src/ layout; tests moved to top-level tests/.

  • Ported tests to pytest-django fixtures.

  • Removed unused mypy, django-stubs, djLint and factory-boy dev dependencies.

1.2.0 (2026-10-10)

  • Added Python 3.15 support.

  • Dropped Python 3.10 support; now requires Python 3.11-3.15.

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.

Metadata

Release files for django-sitecats-helpers 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-sitecats-helpers 1.2.1
File Size Uploaded Provenance Actions
django_sitecats_helpers-1.2.1.tar.gz 6.9 kB With provenance Details for django_sitecats_helpers-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-sitecats-helpers 1.2.1
File Interpreter ABI Platform Actions
django_sitecats_helpers-1.2.1-py3-none-any.whl Python 3 none any Details for django_sitecats_helpers-1.2.1-py3-none-any.whl

Total release size: 13.0 kB

Release files / django_sitecats_helpers-1.2.1.tar.gz

Download URL django_sitecats_helpers-1.2.1.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
70380d4cda61ab5cf7000a6e1489ebad2f74d79918d0d4fd02804487b02588d0
BLAKE2b-256 checksum
How to use checksums
11caf8d6e09fa4840db8b761212a673561d7df819e5666fe5ebc948edb561482
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / django_sitecats_helpers-1.2.1-py3-none-any.whl

Download URL django_sitecats_helpers-1.2.1-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a93388d4a56375de95133d6db055f79155a7ba17d92b46334fd2f6ed263ca820
BLAKE2b-256 checksum
How to use checksums
97298087b865865cc8174d62f3a22a6f118a9e774715e155eef6322a5b90e04f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for django-sitecats-helpers 1.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_sitecats_helpers-1.2.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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