8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-23 11:53:12 +00:00

Bug fix creation d'extensions

This commit is contained in:
Gabriel Detraz 2018-01-30 02:02:43 +00:00 committed by root
parent c33a0b9bb9
commit 623f1056c3

View file

@ -815,7 +815,7 @@ class Extension(models.Model):
def __str__(self):
return self.name
def clean(self):
def clean(self, *args, **kwargs):
if self.name and self.name[0] != '.':
raise ValidationError("Une extension doit commencer par un point")
super(Extension, self).clean(*args, **kwargs)