Skip to content

Commit

Permalink
Revert "Ensure results are distinct when applying a filter, there may…
Browse files Browse the repository at this point in the history
… be n:m relations around"

This reverts commit cf51306.
  • Loading branch information
matthiask committed Jan 14, 2025
1 parent cf51306 commit b3433b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feincms3_data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def specs_for_app_models(app, spec=None):
def _model_queryset(spec):
queryset = apps.get_model(spec["model"])._default_manager.order_by("pk")
if f := spec.get("filter"):
queryset = queryset.filter(**f).distinct()
queryset = queryset.filter(**f)
return queryset


Expand Down

0 comments on commit b3433b3

Please sign in to comment.