Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor filtersets (inheritance, purpose of classes), restore custom search fields #177

Merged
merged 4 commits into from
Aug 19, 2024

Conversation

koeaw
Copy link
Collaborator

@koeaw koeaw commented Aug 14, 2024

No description provided.

koeaw added 4 commits July 24, 2024 17:13
Differentiate between entity model-based FilterSets
and (reusable) classes for custom search fields:
Have the former inherit directly from a common parent
which inherits from AbstractEntityFilterSet,
rename the latter for clarity, add Docstrings,
have them inherit from django_filters base FilterSet.
Rename custom search fields so they don't
clash/aren't overwritten by new APIS Core
search field which filters across a model's
(built-in) string fields (CharField, TextField).
Move filter_overrides for ArrayField to Meta
class of common parent for model-based FilterSets
to reduce redundancy.
@koeaw koeaw merged commit aed71d8 into deploy Aug 19, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant