|
|
|
@ -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) |
|
|
|
|
|
|
|
|
|