diff options
Diffstat (limited to 'archaeological_operations/forms.py')
-rw-r--r-- | archaeological_operations/forms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archaeological_operations/forms.py b/archaeological_operations/forms.py index d2303a43b..d524fdbc5 100644 --- a/archaeological_operations/forms.py +++ b/archaeological_operations/forms.py @@ -841,8 +841,8 @@ class OperationFormGeneral(forms.Form): if 'pk' in cleaned_data and cleaned_data['pk']: ops = ops.exclude(pk=cleaned_data['pk']) if ops.count(): - msg = _(u"Ce code Patriarche a déjà été affecté à une " - u"autre opération") + msg = u"Ce code Patriarche a déjà été affecté à une "\ + u"autre opération" raise forms.ValidationError(msg) # manage unique operation ID year = self.cleaned_data.get("year") |