make slug and titles non-mandatory

This commit is contained in:
Laura Klünder 2017-07-08 16:50:37 +02:00
parent f2913dd8ac
commit 3dfa4b4956
3 changed files with 3 additions and 7 deletions

View file

@ -93,11 +93,6 @@ class MapitemFormMixin(ModelForm):
if not self.cleaned_data.get('geometry'):
raise ValidationError('Missing geometry.')
if hasattr(self.instance, 'titles') and not any(self.titles.values()):
raise ValidationError(
_('You have to select a title in at least one language.')
)
super().clean()