Metadata-Version: 2.4
Name: django-grouper
Version: 0.3.0
Summary: Group Django objects by similarity
Author-email: Birger Schacht <birger.schacht@oeaw.ac.at>
License-Expression: MIT
Requires-Dist: django>=3
Requires-Dist: scikit-learn>=1.5.0
Description-Content-Type: text/markdown

Group Django model instances based on similar fields

# 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.
