Commit 3c89b0dd authored by Luc JEAN's avatar Luc JEAN

Fix #1023 Admin - error when editing mp3 files in applications

parent 5eef6cd4
......@@ -2083,7 +2083,7 @@ class CompetitionAdminSite(BaseAdminSite):
full_path = os.path.join(settings.MEDIA_ROOT, target_dir, audio)
if not is_mp3_valid(full_path):
raise ValidationError(_('This is not a valid mp3'))
return audio
return self._clean_file('audio')
if request.method == 'POST':
form = candidate_media_form_class(request.POST, instance=instance)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment