Commit 24294f32 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

projects: enforce valid_name on save

parent 8f2e3e2f
Pipeline #1926 passed with stages
in 39 seconds
......@@ -181,6 +181,10 @@ class Project(Links, NamedModel, TimeStampedModel):
debug = models.BooleanField(default=False)
from_gepetto = models.BooleanField(default=True)
def save(self, *args, **kwargs): = valid_name(
super().save(*args, **kwargs)
def git_path(self):
return settings.RAINBOARD_GITS / self.main_namespace.slug / self.slug.strip() # workaround SafeText TypeError
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