Skip to main content

No project description provided

Project description

Group Django model instances on similar fields

Based on this tutorial

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.2.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

django_grouper-0.2.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_grouper-0.2.0.tar.gz
  • Upload date:
  • Size: 5.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.1.0 CPython/3.12.5

File hashes

Hashes for django_grouper-0.2.0.tar.gz
Algorithm Hash digest
SHA256 298ef91f14c87393e6bc60b7ce6daac4f42cc104e3d13b532e5c588bb8abf9d4
MD5 74bc15831ecda240bdf16b5ef805cfde
BLAKE2b-256 064462726b6e97747a209f90885bcefef5679aad0b1701f608168ccdead490c6

See more details on using hashes here.

File details

Details for the file django_grouper-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_grouper-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c5a9d90a4a1e494daa13b97f0ef14a1e892ea69136cc4dce51b9c23439b9e307
MD5 5a2e00606095925b8f510725b6438df7
BLAKE2b-256 4b68f22ed590da524f18c2d9a883c67046e2fa97f0d4b714a331cc9072ecef51

See more details on using hashes here.

Supported by

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