Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/indico/modules/events/schemas.py b/indico/modules/events/schemas.py
- index 7e54a59e9..f799e5f98 100644
- --- a/indico/modules/events/schemas.py
- +++ b/indico/modules/events/schemas.py
- @@ -16,9 +16,14 @@
- from __future__ import unicode_literals
- +from marshmallow import fields
- +
- from indico.core.marshmallow import mm
- class PersonLinkSchema(mm.Schema):
- + author_type = fields.Function(lambda obj: None if obj.author_type.name == 'none' else obj.author_type.name)
- +
- class Meta:
- - fields = ('id', 'person_id', 'email', 'first_name', 'last_name', 'title', 'affiliation', 'address', 'phone')
- + additional = ('id', 'person_id', 'email', 'first_name', 'last_name', 'title', 'affiliation', 'address',
- + 'phone', 'is_speaker')
Add Comment
Please, Sign In to add comment