You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove CDC Landscape themes from theme selection dropdown
"CDC Landscape (Default)" (landscape-cdc-blue) and "CDC Landscape
(Light)" (landscape-cdc-white) are unused and should no longer be
selectable in the Builder's theme dropdown (#479).
Filter them out in NofoThemeOptionsForm rather than removing them from
models.THEME_CHOICES: Nofo.save() calls full_clean(), which validates
the theme field against THEME_CHOICES on every save, not just theme
changes. Removing the values there would make any pre-existing NOFO
with one of these themes fail to save at all. Keeping them in
THEME_CHOICES but excluding them from the form's dropdown choices
removes them from selection while leaving existing NOFOs fully
renderable and editable. If a NOFO's current theme is one of the two,
it's still included in its own "Legacy" optgroup so the edit form
shows/preserves that value instead of silently switching it.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
0 commit comments