Skip to content

Add previous/next reading order fields to ReadingList#566

Merged
bpepple merged 1 commit into
masterfrom
565-add-previousnext-fields-to-readinglist-for-reading-order
Jul 20, 2026
Merged

Add previous/next reading order fields to ReadingList#566
bpepple merged 1 commit into
masterfrom
565-add-previousnext-fields-to-readinglist-for-reading-order

Conversation

@bpepple

@bpepple bpepple commented Jul 20, 2026

Copy link
Copy Markdown
Member

Summary

  • Add self-referential previous/next FKs to ReadingList so curators can chain lists into a larger reading order (e.g. "Batgirl: Mother" -> "Batgirl: The Book of Shiva"), with save() keeping both sides of the link in sync automatically
  • Expose the links in the admin, the create/edit form (with a new ReadingListAutocomplete), the reading list detail page, and the API's ReadingListReadSerializer ({id, name})
  • Add a "Clear selection" button next to the Previous/Next autocomplete fields, since the third-party widget has no built-in way to unset a single selection

Closes #565

Lets curators chain reading lists into a larger reading order (e.g. "Batgirl: Mother" -> "Batgirl: The Book of Shiva") by linking one list to the next/previous in the sequence. Saving a link keeps both sides in sync automatically, and the edit form's autocomplete pickers can now be cleared since the widget itself has no built-in way to unset a single selection.

Closes #565
@bpepple bpepple linked an issue Jul 20, 2026 that may be closed by this pull request
@bpepple bpepple self-assigned this Jul 20, 2026
@bpepple bpepple added enhancement New feature or request api An API bug/feature reading list labels Jul 20, 2026
@bpepple
bpepple merged commit 26177bb into master Jul 20, 2026
2 checks passed
@bpepple
bpepple deleted the 565-add-previousnext-fields-to-readinglist-for-reading-order branch July 20, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api An API bug/feature enhancement New feature or request reading list

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add previous/next fields to ReadingList for reading order

1 participant