Commits

Julio Biason committed 11a3058

login is now the primary key for users

  • Participants
  • Parent commits 0e236af

Comments (0)

Files changed (1)

 
 
 class User(Document):
-    name = StringField()
+    login = StringField(primary_key=True)
+    password = StringField()
+    fullname = StringField()
     joined = DateTimeField()
     future_options = ListField(ReferenceField(Animal))