{"id":18041547,"url":"https://github.com/bashu/django-sitecats-helpers","last_synced_at":"2026-04-30T10:31:18.316Z","repository":{"id":57422000,"uuid":"59345540","full_name":"bashu/django-sitecats-helpers","owner":"bashu","description":"😹 django admin helper classes for django-sitecats categories","archived":false,"fork":false,"pushed_at":"2021-11-30T03:21:57.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"develop","last_synced_at":"2025-03-11T12:40:17.916Z","etag":null,"topics":["django","django-sitecats"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bashu.png","metadata":{"files":{"readme":"README.rst","changelog":"CHANGES.rst","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-21T06:31:25.000Z","updated_at":"2021-11-30T03:21:52.000Z","dependencies_parsed_at":"2022-09-06T07:11:15.786Z","dependency_job_id":null,"html_url":"https://github.com/bashu/django-sitecats-helpers","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-sitecats-helpers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-sitecats-helpers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-sitecats-helpers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bashu%2Fdjango-sitecats-helpers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bashu","download_url":"https://codeload.github.com/bashu/django-sitecats-helpers/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247277764,"owners_count":20912585,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["django","django-sitecats"],"created_at":"2024-10-30T16:10:33.666Z","updated_at":"2026-04-30T10:31:18.274Z","avatar_url":"https://github.com/bashu.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"django-sitecats-helpers\n=======================\n\n.. image:: https://img.shields.io/pypi/v/django-sitecats-helpers.svg\n    :target: https://pypi.python.org/pypi/django-sitecats-helpers/\n\n.. image:: https://img.shields.io/pypi/dm/django-sitecats-helpers.svg\n    :target: https://pypi.python.org/pypi/django-sitecats-helpers/\n\n.. image:: https://img.shields.io/github/license/bashu/django-sitecats-helpers.svg\n    :target: https://pypi.python.org/pypi/django-sitecats-helpers/\n\nDjango admin helper classes for django-sitecats_ categories.\n\nAuthored by `Basil Shubin \u003chttp://github.com/bashu\u003e`_, inspired by django-taggit-helpers_\n\nInstallation\n------------\n\nFirst install the module, preferably in a virtual environment. It can be installed from PyPI:\n\n.. code-block:: shell\n\n    pip install django-sitecats-helpers\n\nSetup\n-----\n\nFirst make sure the project is configured for django-sitecats_.\n\nThen add the following settings:\n\n.. code-block:: python\n\n    INSTALLED_APPS += (\n        'sitecats_helpers',\n    )\n\n\nUsage\n-----\n\nCategoryCounter\n~~~~~~~~~~~~~~~\n\nDisplay (and sort by) number of categories associated with objects.\n\n.. code-block:: python\n\n    from sitecats_helpers.admin import CategoryCounter\n\n    class MyModelAdmin(CategoryCounter, admin.ModelAdmin):    # CategoryCounter before ModelAdmin\n        list_display = (\n            ...\n            'category_counter',\n        )\n\nCategoryListFilter\n~~~~~~~~~~~~~~~~~~\n\nFilter records by categories for the current model only.\n\n.. code-block:: python\n\n    from sitecats_helpers.admin import CategoryListFilter\n\n    class MyModelAdmin(admin.ModelAdmin):\n        list_filter = [CategoryListFilter]\n\nCategoryStackedInline\n~~~~~~~~~~~~~~~~~~~~~\n\nAdd stacked inline for categories to admin.\n\n.. code-block:: python\n\n    from sitecats_helpers.admin import CategoryStackedInline\n\n    class MyModelAdmin(admin.ModelAdmin):\n        inlines = [CategoryStackedInline]\n\nCategoryTabularInline\n~~~~~~~~~~~~~~~~~~~~~\n\nAdd tabular inline for categorise to admin.\n\n.. code-block:: python\n\n    from sitecats_helpers.admin import CategoryTabularInline\n\n    class MyModelAdmin(admin.ModelAdmin):\n        inlines = [CategoryTabularInline]\n\nContributing\n------------\n\nIf you like this module, forked it, or would like to improve it, please let us know!\nPull requests are welcome too. :-)\n\nLicense\n-------\n\n``django-sitecats-helpers`` is released under the MIT license.\n\n.. _django-sitecats: https://github.com/idlesign/django-sitecats\n.. _django-taggit-helpers: https://github.com/mfcovington/django-taggit-helpers\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashu%2Fdjango-sitecats-helpers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbashu%2Fdjango-sitecats-helpers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbashu%2Fdjango-sitecats-helpers/lists"}