Ce serveur Gitlab sera éteint le 30 juin 2020, pensez à migrer vos projets vers les serveurs gitlab-research.centralesupelec.fr et gitlab-student.centralesupelec.fr !

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

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