Skip to main content

Group Django model instances based on similar fields

Installation

  1. add django_grouper to your INSTALLED_APPS
  2. add path("", include("django_grouper.urls")) to your urlpatterns
  3. go to /grouper and add the param group_content_type to specify which ContentType to group and the params group_fields to specify which fields to group by

Configuration

If you define a GROUP_FILTER in you settings, the queryset in the /grouper view will be passed through this filter. The filter is expected to be a callable and will receive the queryset and the request as parameters. This means you can pass the queryset together with the request to a django-filter filter.

The /group view lets you select which objects of a list should be merged. If you double click an object, it will become the primary, a single click marks an object as secondary. There can be one primary and multiple secondaries. The secondaries are then passed to the djg_merge method on the primary. You can use this method to implement a custom merge method.

Metadata

Release files for django-grouper 0.5.2

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-grouper 0.5.2
File Size Uploaded Provenance Actions
django_grouper-0.5.2.tar.gz 9.1 kB With provenance Details for django_grouper-0.5.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for django-grouper 0.5.2
File Interpreter ABI Platform Actions
django_grouper-0.5.2-py2.py3-none-any.whl Python 3, Python 2 none any Details for django_grouper-0.5.2-py2.py3-none-any.whl

Total release size: 17.6 kB

Release files / django_grouper-0.5.2.tar.gz

Download URL django_grouper-0.5.2.tar.gz
Size 9.1 kB
Tags Source
SHA-256 checksum
How to use checksums
1943ecb82db96cdcd9d1268175351adcba65d6dbd56b53e2d327e64d5dbb2669
BLAKE2b-256 checksum
How to use checksums
39e25c0cf054f9bd3cc398bd6aecf23eb8ffb191513d387a07622078a14239a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 22, 2026.

Transparency log

Release files / django_grouper-0.5.2-py2.py3-none-any.whl

Download URL django_grouper-0.5.2-py2.py3-none-any.whl
Size 8.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
fe4d4f3571f1222ca5df31b4325a23cfe9c5081b5ce43931ed98683373bc5976
BLAKE2b-256 checksum
How to use checksums
b0a98eff9e303770ac800514495f78108895c0515e88ed66b09fccd870c77626
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 22, 2026.

Transparency log

Security for django-grouper 0.5.2

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for django_grouper-0.5.2.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 Sep 22, 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