Skip to content

feat: improve Podcast sound fields validation

Breaking changes! The following settings are renamed: WEBRADIO_SOUND_FILE -> WEBRADIO_PODCAST_SOUND_FILE and WEBRADIO_AUTHORIZED_MIME_TYPES -> WEBRADIO_ALLOWED_AUDIO_MIME_TYPES

The following changes on Podcast forms and model are made:

  • move the MIME type validation of sound_file to a validator
  • attach validation error to the related sound field instead of non field errors
  • check if WEBRADIO_PODCAST_SOUND_FILE is False when validating sound fields to prevent some issues
  • raise sound fields' validation error from the model before checking the value of is_sound_valid in the form
Edited by Jérôme Lebleu

Merge request reports