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 from restapi import Methods
class UserCustomFields(EmbeddedDocument):
name = StringField()
value = StringField()
class User(Document): class User(Document):
meta = { meta = {
'index_background': True, 'index_background': True,
@ -104,7 +109,7 @@ class User(Document):
'Transsexual Woman', 'Transsexual Woman',
'Two-Spirit' 'Two-Spirit'
)) ))
gnupg_fingerprint = StringField() customn_fields = ListField(EmbeddedDocumentField(UserCustomFields))
user_group = ReferenceField(Group) user_group = ReferenceField(Group)
payment_group = ReferenceField(PaymentGroup) payment_group = ReferenceField(PaymentGroup)

Loading…
Cancel
Save