Преглед изворни кода

I got 99 chars but my name as 100

Colin Powell пре 3 година
родитељ
комит
970852ef45
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      games/models.py

+ 1 - 1
games/models.py

@@ -44,7 +44,7 @@ class BaseModel(TimeStampedModel):
     def slugify_function(self, content):
         for element in settings.REMOVE_FROM_SLUGS:
             content = content.replace(element, "-")
-        return content.lower()
+        return content.lower()[:99]
 
     def __str__(self):
         return self.name