Commit 623f1056 authored by Gabriel Detraz's avatar Gabriel Detraz Committed by Gabriel Detraz

Bug fix creation d'extensions

parent c33a0b9b
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment