Fix admin message auto-dismiss and Category plural label #64
Reference in New Issue
Block a user
Delete Branch "fix/issue-62-messages-and-categories"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
w-messagesStimulus controller supportsautoClearbut the template never set it, so messages piled up and never disappeared. Addeddata-w-messages-auto-clear-value="8000"to the admin base template override.Categorymodel was missingverbose_name_pluralin its Meta class, so Django auto-generated the incorrect English plural. Addedverbose_name_plural = "categories"with a migration.Closes #62
Test plan
test_admin_messages_have_auto_clear— verifies the messages container includes the auto-clear data attributetest_category_verbose_name_plural— verifiesCategory._meta.verbose_name_plural == "categories"test_snippet_category_listing_shows_categories— verifies categories appear in the Wagtail snippet listing at/cms/snippets/blog/category/🤖 Generated with Claude Code