mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 14:31:57 -05:00
add auth_type to schemas to enable updating in endpoints
This commit is contained in:
@@ -87,6 +87,7 @@ class UserSchema(BaseSchema):
|
||||
permissions = fields.Method("user_permissions", dump_only=True)
|
||||
password_changed_at = field_for(models.User, 'password_changed_at', format='%Y-%m-%d %H:%M:%S.%f')
|
||||
created_at = field_for(models.User, 'created_at', format='%Y-%m-%d %H:%M:%S.%f')
|
||||
auth_type = field_for(models.User, 'auth_type')
|
||||
|
||||
def user_permissions(self, usr):
|
||||
retval = {}
|
||||
@@ -505,6 +506,7 @@ class NotificationWithPersonalisationSchema(NotificationWithTemplateSchema):
|
||||
|
||||
|
||||
class InvitedUserSchema(BaseSchema):
|
||||
auth_type = field_for(models.InvitedUser, 'auth_type')
|
||||
|
||||
class Meta:
|
||||
model = models.InvitedUser
|
||||
|
||||
Reference in New Issue
Block a user