Prechádzať zdrojové kódy

I got 99 chars but my name as 100

Colin Powell 3 rokov pred
rodič
commit
970852ef45
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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