No project description provided
Project description
Group Django model instances on similar fields
Based on this tutorial
Installation
- add
django_grouper
to yourINSTALLED_APPS
- add
path("", include("django_grouper.urls"))
to yoururlpatterns
- go to
/grouper
and add the paramgroup_content_type
to specify which ContentType to group and the paramsgroup_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
Release history Release notifications | RSS feed
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)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 298ef91f14c87393e6bc60b7ce6daac4f42cc104e3d13b532e5c588bb8abf9d4 |
|
MD5 | 74bc15831ecda240bdf16b5ef805cfde |
|
BLAKE2b-256 | 064462726b6e97747a209f90885bcefef5679aad0b1701f608168ccdead490c6 |
File details
Details for the file django_grouper-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: django_grouper-0.2.0-py3-none-any.whl
- Upload date:
- Size: 6.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.0 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5a9d90a4a1e494daa13b97f0ef14a1e892ea69136cc4dce51b9c23439b9e307 |
|
MD5 | 5a2e00606095925b8f510725b6438df7 |
|
BLAKE2b-256 | 4b68f22ed590da524f18c2d9a883c67046e2fa97f0d4b714a331cc9072ecef51 |