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.1.0.tar.gz
(4.2 kB
view details)
Built Distribution
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | d54240b5319cfcfd59c526a282d28f4b304c123ef604e25853a738fde8031b96 |
|
MD5 | fd99ca0be60e2ba06a6bb7a6abe6b354 |
|
BLAKE2b-256 | 6192d98d01268f0ba3dd30aa0fb2d414aa4979da53ff3f27d6159fed7a439557 |
File details
Details for the file django_grouper-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: django_grouper-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.0 CPython/3.11.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e3eec307cda04312098ebdd608816bb84a6fef99e7fd2a074eb6b5070f955124 |
|
MD5 | 2fd2b85c11675b86accb1bbb5af76a02 |
|
BLAKE2b-256 | f307ebcf99cb703be5a1ffe52940447ecf3450b3a6b5a14c3d06fda5a3717674 |