remove gnupg field

add custom list field mechanism
pull/5/head
Mustafa Yontar 4 years ago
parent 0870173e65
commit 4026a1f25d
  1. 7
      models/User.py

@ -8,6 +8,11 @@ from models.Union import Union
from restapi import Methods
class UserCustomFields(EmbeddedDocument):
name = StringField()
value = StringField()
class User(Document):
meta = {
'index_background': True,
@ -104,7 +109,7 @@ class User(Document):
'Transsexual Woman',
'Two-Spirit'
))
gnupg_fingerprint = StringField()
customn_fields = ListField(EmbeddedDocumentField(UserCustomFields))
user_group = ReferenceField(Group)
payment_group = ReferenceField(PaymentGroup)

Loading…
Cancel
Save