Procházet zdrojové kódy

I got 99 chars but my name as 100

Colin Powell před 3 roky
rodič
revize
970852ef45
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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