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

Merged
merged 3 commits into from
Jan 17, 2025

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
@dchiller dchiller merged commit 0938ad1 into DDMAL:develop Jan 17, 2025
1 check passed
@dchiller dchiller deleted the i1729-source-chant-json-endpoint branch January 17, 2025 14:52
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
2 participants