Fix admin News page crash #30

Merged
iec-admin merged 1 commit from claw/news-blank-image-7c1d into main 2026-09-30 22:53:10 +00:00
Contributor

/admin/news crashed on first visit in prod: with no saved articles it seeds the defaults, and three defaults have no photo while the model required image, so the seed threw a ValidationError. image is now optional (default '') in the model and the admin validation. The public site already renders these articles without a photo.

🤖 Generated with Claude Code

/admin/news crashed on first visit in prod: with no saved articles it seeds the defaults, and three defaults have no photo while the model required `image`, so the seed threw a ValidationError. `image` is now optional (default `''`) in the model and the admin validation. The public site already renders these articles without a photo. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Three default articles have no photo, but the model required an image,
so the first-visit seed on /admin/news threw a ValidationError.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
iec-admin deleted branch claw/news-blank-image-7c1d 2026-09-30 22:53:10 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
martin/ballantyne-www!30
No description provided.