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

Uploaded Source

Built Distribution

django_grouper-0.1.0-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django_grouper-0.1.0.tar.gz
  • Upload date:
  • Size: 4.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.0 CPython/3.11.9

File hashes

Hashes for django_grouper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 d54240b5319cfcfd59c526a282d28f4b304c123ef604e25853a738fde8031b96
MD5 fd99ca0be60e2ba06a6bb7a6abe6b354
BLAKE2b-256 6192d98d01268f0ba3dd30aa0fb2d414aa4979da53ff3f27d6159fed7a439557

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_grouper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e3eec307cda04312098ebdd608816bb84a6fef99e7fd2a074eb6b5070f955124
MD5 2fd2b85c11675b86accb1bbb5af76a02
BLAKE2b-256 f307ebcf99cb703be5a1ffe52940447ecf3450b3a6b5a14c3d06fda5a3717674

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