Guénaël Muller 7 лет назад
Родитель
Сommit
4701a2b664
1 измененных файлов: 2 добавлений и 2 удалений
  1. 2 2
      tracim/views/core_api/schemas.py

+ 2 - 2
tracim/views/core_api/schemas.py Просмотреть файл

3
 
3
 
4
 
4
 
5
 class ProfileSchema(marshmallow.Schema):
5
 class ProfileSchema(marshmallow.Schema):
6
-    id = marshmallow.fields.Int(dump_only=True, required=True)
6
+    id = marshmallow.fields.Int(dump_only=True)
7
     name = marshmallow.fields.String()
7
     name = marshmallow.fields.String()
8
 
8
 
9
 
9
 
10
 class UserSchema(marshmallow.Schema):
10
 class UserSchema(marshmallow.Schema):
11
-    user_id = marshmallow.fields.Int(dump_only=True, required=True)
11
+    user_id = marshmallow.fields.Int(dump_only=True)
12
     email = marshmallow.fields.Email(required=True)
12
     email = marshmallow.fields.Email(required=True)
13
     display_name = marshmallow.fields.String()
13
     display_name = marshmallow.fields.String()
14
     created = marshmallow.fields.DateTime(format='iso8601')
14
     created = marshmallow.fields.DateTime(format='iso8601')