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