8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-12-23 23:43:47 +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 cc539095b3
commit d01eff3051

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)