Commits

Anonymous committed 9a693bb Draft

Generate ListField declaration correctly.

  • Participants
  • Parent commits 0e03742

Comments (0)

Files changed (1)

File mongoengine/extract-model.py

         return "!! Unknown field type (%s)" % data_type
 
     if is_list:
-        return "ListField(%s(%s))" % field_type
+        return "ListField(%s())" % field_type
     else:
         return "%s(%s)" % (field_type, "required=True" if count == doc_count else "")