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.0

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.0
File Size Uploaded Provenance Actions
django_grouper-0.5.0.tar.gz 8.8 kB With provenance Details for django_grouper-0.5.0.tar.gz

Built distribution (wheel)

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

Total release size: 17.3 kB

Release files / django_grouper-0.5.0.tar.gz

Download URL django_grouper-0.5.0.tar.gz
Size 8.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e4aa10c09f5498a94414e6c0d0dbf2d0bffaf007f21d24143e082d9de1a6cd03
BLAKE2b-256 checksum
How to use checksums
02c3b5862b5cebdcb85545f8343de2938e8f8ca6775da9a6e9061811f54dc9d5
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 11, 2026.

Transparency log

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

Download URL django_grouper-0.5.0-py2.py3-none-any.whl
Size 8.5 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
9837b11eb824a61bd8af7d4b444ae99782a2a218682d3d24e1495f4cf3cc0982
BLAKE2b-256 checksum
How to use checksums
d12c09765f3572506ae0d1fe501689c08e9dd4db9f25acac0d1cb26684e78213
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 11, 2026.

Transparency log

Security for django-grouper 0.5.0

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.0.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 11, 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