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

Built distribution (wheel)

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

Total release size: 17.3 kB

Release files / django_grouper-0.5.1.tar.gz

Download URL django_grouper-0.5.1.tar.gz
Size 8.9 kB
Tags Source
SHA-256 checksum
How to use checksums
a8ad2013b6d5b7e03fe8a7b06b8c7c93cb3c022ac780e0a77981c2038f8b6e98
BLAKE2b-256 checksum
How to use checksums
59a5841747457fd34a4900a813ee0aaa29a30947123c511c67dc15c7653e1f43
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 21, 2026.

Transparency log

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

Download URL django_grouper-0.5.1-py2.py3-none-any.whl
Size 8.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
3123b49b9a9821733908e4f859e023a5e21fa6392320b18f23abbb446bc098b1
BLAKE2b-256 checksum
How to use checksums
28e3319b6b6fceb6b828dbd6ebfcdee511f9be8b7db19384aa5c3df03d746f8f
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 21, 2026.

Transparency log

Security for django-grouper 0.5.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

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

Select from 2 files

Attestation for django_grouper-0.5.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 Sep 21, 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