Update feast filter dropdown options on Source pages & general clean-up of source views #1711
+320
−217
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes the feast dropdown on
SourceBrowseChants
,SourceDetail
, andSourceEditChants
views. Rather than have one option for each feast-folio combination (that then returned results for all chants of the selected feast, regardless of folio), we have one option for feast and show the range of folios on which that feast appears. Feasts are presented in order of the folio of their first appearance in the source.Previous version of Source Detail page
New version of Source Detail page
Previously, the chant object to be updated was determined first by the presence of pk in the request parameters, and then, if no pk was present, by whatever chant in the source had most recently been created. In practice, edits to chants through the SourceEditChants view were always passed with a chant pk, so the second option did not ever seem to be used on the "live" site. On the other hand, all tests of this view made use of the second option. This discrepancy between "real-life" behaviour and tested behaviour seemed like a suboptimal situation, so I modified the view and tests to that a chant pk is always required.
Also implements two other minor refactorings and fixes of source-related pages:
Closes #1707. Closes #1708.