make slug and titles non-mandatory
This commit is contained in:
parent
f2913dd8ac
commit
3dfa4b4956
3 changed files with 3 additions and 7 deletions
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue