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

feat(relations): limit the number of subj/obj models in filter #1425

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

b1rger
Copy link
Contributor

@b1rger b1rger commented Nov 21, 2024

Replace the "hardcoded" subj_class and obj_class filters in the
RelationFilterSet with more dynamic versions that take a list of models
that can be possilbe choices. If there is only one choice, the filter is
simply not added.

Closes: #1390

Replace the "hardcoded" `subj_class` and `obj_class` filters in the
RelationFilterSet with more dynamic versions that take a list of models
that can be possilbe choices. If there is only one choice, the filter is
simply not added.

Closes: #1390
@b1rger b1rger marked this pull request as ready for review November 21, 2024 11:32
@b1rger b1rger requested a review from gythaogg November 21, 2024 11:32
Copy link
Contributor

@gythaogg gythaogg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in Discworld. Thanks!

@b1rger b1rger merged commit 6e6d026 into main Nov 22, 2024
14 checks passed
@b1rger b1rger deleted the birger/1390-relation-filter-models branch November 22, 2024 06:36
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.

question (relations): subj_class and obj_class dropdown values
2 participants