]> git.parisson.com Git - teleforma.git/commitdiff
fix slug
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 23 Nov 2023 07:47:34 +0000 (08:47 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 23 Nov 2023 07:47:34 +0000 (08:47 +0100)
teleforma/models/core.py

index 401dab67706ed152548885e607e1cc5db820128d..274b01961245c216b6e54eccb4e1ab13b8c0df65 100755 (executable)
@@ -149,7 +149,7 @@ class Department(models.Model):
 
     @property
     def slug(self):
-        return slugify(self.__unicode__())
+        return slugify(self.__str__())
 
     class Meta(MetaCore):
         db_table = app_label + '_' + 'department'