Exemplo n.º 1
0
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', )
Exemplo n.º 2
0
class EmailListDetailSerializer(EmailListSerializer):
    users = PublicUserListField({"read_only": True})
    groups = AbakusGroupListField({"read_only": True})