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

Add JSON response to chant and source detail endpoints #1730

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Conversation

dchiller
Copy link
Contributor

@dchiller dchiller commented Dec 17, 2024

Use JSONResponseMixin to add possibility for JSON response to chant and source detail pages.

Update JSONResponseMixin to handle Django's typical "double underscore" lookup for fields on individual object fields (this notation was previously supported when the mixin was used on a ListView).

Add missing types in permissions.py.

Tests in ChantDetailViewTest and SourceDetailViewTest are updated accordingly. These tests are also typed.

Closes #1729.

@dchiller dchiller marked this pull request as ready for review December 17, 2024 19:55
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.

Add json export endpoint for source and chant detail
1 participant