mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-27 15:12:25 +00:00
Bug fix creation d'extensions
This commit is contained in:
parent
c33a0b9bb9
commit
623f1056c3
1 changed files with 1 additions and 1 deletions
|
@ -815,7 +815,7 @@ class Extension(models.Model):
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.name
|
return self.name
|
||||||
|
|
||||||
def clean(self):
|
def clean(self, *args, **kwargs):
|
||||||
if self.name and self.name[0] != '.':
|
if self.name and self.name[0] != '.':
|
||||||
raise ValidationError("Une extension doit commencer par un point")
|
raise ValidationError("Une extension doit commencer par un point")
|
||||||
super(Extension, self).clean(*args, **kwargs)
|
super(Extension, self).clean(*args, **kwargs)
|
||||||
|
|
Loading…
Reference in a new issue