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 hashes)
Built Distribution
Close
Hashes for django_grouper-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c5a9d90a4a1e494daa13b97f0ef14a1e892ea69136cc4dce51b9c23439b9e307 |
|
MD5 | 5a2e00606095925b8f510725b6438df7 |
|
BLAKE2b-256 | 4b68f22ed590da524f18c2d9a883c67046e2fa97f0d4b714a331cc9072ecef51 |