Explorar o código

I got 99 chars but my name as 100

Colin Powell %!s(int64=3) %!d(string=hai) anos
pai
achega
970852ef45
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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