From: Guillaume Pellerin Date: Thu, 16 Jun 2022 15:41:54 +0000 (+0200) Subject: add '-' to Conference slug and mount_point to allow spaces in course_type X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=5a11c14e3c0d74e415a4782052b9a69db839fe00;p=telecaster-client.git add '-' to Conference slug and mount_point to allow spaces in course_type --- diff --git a/telecaster/models.py b/telecaster/models.py index c9069ef..469d734 100644 --- a/telecaster/models.py +++ b/telecaster/models.py @@ -123,7 +123,7 @@ class Station(Model): @property def slug(self): - return self.conference.slug + return self.conference.slug.replace(' ', '-') @property def date_added(self): @@ -165,7 +165,8 @@ class Station(Model): if output_dir[-1] != os.sep: output_dir += os.sep output_dir += os.sep.join([self.organization, self.department, self.date, - self.course.code + spacer + self.conference.course_type.name, + self.course.code + spacer + \ + self.conference.course_type.name.replace(' ', '-'), self.public_id ]) if not os.path.exists(output_dir):