1
0
mirror of https://gitlab.crans.org/mediatek/med.git synced 2025-07-07 16:28:32 +02:00
This commit is contained in:
Yohann D'ANELLO
2020-05-12 15:09:06 +02:00
parent aa9b69f2d6
commit 43b3b5ccfe
3 changed files with 8 additions and 3 deletions

View File

@ -198,7 +198,7 @@ class MediaAdminForm(ModelForm):
from django.core.exceptions import ValidationError
try:
# We don't want to check a field when we enter an ISBN.
if "isbn" not in self.request.POST \
if "_isbn" not in self.request.POST \
or not self.cleaned_data.get('isbn'):
value = field.clean(value)
self.cleaned_data[name] = value