Skip to content

Fix reading list items displaying order starting from 0#545

Merged
bpepple merged 2 commits into
masterfrom
fix-reading-list-order
Jun 27, 2026
Merged

Fix reading list items displaying order starting from 0#545
bpepple merged 2 commits into
masterfrom
fix-reading-list-order

Conversation

@bpepple

@bpepple bpepple commented Jun 27, 2026

Copy link
Copy Markdown
Member

Summary

  • The order field on ReadingListItem had default=0, causing items added via the Django admin inline (without an explicit value) to display as "0" in the reading list detail view instead of a 1-based position.
  • Changed the field default to 1.
  • Added a data migration (0009) to renumber any existing reading lists whose first item has order=0, preserving relative ordering.

- The `order` field on `ReadingListItem` defaulted to 0, causing items created via the Django admin inline (without an explicit order value) to display as "0" in the reading list detail view.
- Add a data migration to renumber any affected lists starting from 1.
@bpepple bpepple self-assigned this Jun 27, 2026
@bpepple bpepple added the bug Something isn't working label Jun 27, 2026
@bpepple bpepple merged commit 34cd89e into master Jun 27, 2026
2 checks passed
@bpepple bpepple deleted the fix-reading-list-order branch June 27, 2026 21:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant