class RestrictedMailDetailSerializer(RestrictedMailSerializer): users = PublicUserListField({'read_only': True}) groups = AbakusGroupListField({'read_only': True}) events = PublicEventListField({'read_only': True}) meetings = MeetingListField({'read_only': True}) class Meta(RestrictedMailSerializer.Meta): fields = RestrictedMailSerializer.Meta.fields + ('token_query_param', )
class EmailListDetailSerializer(EmailListSerializer): users = PublicUserListField({"read_only": True}) groups = AbakusGroupListField({"read_only": True})