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:
parent
cc539095b3
commit
d01eff3051
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue