Skip to main content

Group Django objects by similarity

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_grouper-0.3.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_grouper-0.3.0-py2.py3-none-any.whl (6.1 kB view details)

Uploaded Python 2Python 3

File details

Details for the file django_grouper-0.3.0.tar.gz.

File metadata

  • Download URL: django_grouper-0.3.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for django_grouper-0.3.0.tar.gz
Algorithm Hash digest
SHA256 11ed289bb4ffa71700e0f0f8979e5fda167ecfa99795945f4e13b65a80a46a01
MD5 6fc0b3eb2b9432a91cf751689cbf0d8c
BLAKE2b-256 1dde8b73f20710fce322d912826dab237708d965587f19562bc4815ab20f688a

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_grouper-0.3.0.tar.gz:

Publisher: publish.yml on acdh-oeaw/django-grouper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file django_grouper-0.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_grouper-0.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 37076965063ab6bef00754d4c7260f29f562d2f3e81ae44d7e7840f14136ec51
MD5 6dbbf471ca74c139ae14609b22a0fe17
BLAKE2b-256 3f724ee255870cf0e91bdcd9cf41fc96ac49912f743f50abff6f9ce46bb4114f

See more details on using hashes here.

Provenance

The following attestation bundles were made for django_grouper-0.3.0-py2.py3-none-any.whl:

Publisher: publish.yml on acdh-oeaw/django-grouper

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page