Commits

Konstantine Rybnikov committed 38c855e

max_length 256 to mongo model

Comments (0)

Files changed (1)

fat/fat_po_editor/models_mongo.py

 from mongoengine import StringField
 
 class Repository(Document):
-    path = StringField(required=True)
-
+    path = StringField(required=True, max_length=256)
+    
     meta = {
         'allow_inheritance': False,
         }