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

filter admin inline fields #115

Merged
merged 3 commits into from
Aug 28, 2024

Conversation

lukavdplas
Copy link
Contributor

Small update to filter the querysets of some fields in the admin. E.g. when you select agents in an episode, you'll only see agents from the same source text. (As other agents are not valid choices.)

I was looking into this more out of curiosity than because it's high priority at the moment, but it does make the admin site more user-friendly.

Copy link
Contributor

@XanderVertegaal XanderVertegaal left a comment

Choose a reason for hiding this comment

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

If I avoid the AttributeError, it works well! Have a look at that one and some typing issues, and feel free to merge afterwards.

backend/core/admin.py Outdated Show resolved Hide resolved
backend/person/admin.py Outdated Show resolved Hide resolved
backend/person/admin.py Outdated Show resolved Hide resolved
backend/event/admin.py Outdated Show resolved Hide resolved
backend/person/admin.py Outdated Show resolved Hide resolved
backend/person/admin.py Outdated Show resolved Hide resolved
@lukavdplas lukavdplas merged commit a903b75 into develop Aug 28, 2024
2 checks passed
@lukavdplas lukavdplas deleted the feature/filter-field-querysets-in-admin branch August 28, 2024 12:33
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.

2 participants