Skip to content
Snippets Groups Projects
Verified Commit 33a0fc82 authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

feat: exclude created & updated, and owner IDs field from profile serializer for calendar

parent 69a9f6da
No related branches found
No related tags found
1 merge request!52new program endpoint
......@@ -1401,9 +1401,24 @@ class CalendarSchemaSerializer(serializers.Serializer):
if field not in ["created_at", "created_by", "updated_at", "updated_by"]
]
class CalendarProfileSerializer(ProfileSerializer):
class Meta(ProfileSerializer.Meta):
fields = [
field
for field in ProfileSerializer.Meta.fields
if field
not in [
"created_at",
"created_by",
"owner_ids",
"updated_at",
"updated_by",
]
]
shows = ShowSerializer(many=True)
timeslots = CalendarTimeslotSerializer(many=True)
profiles = ProfileSerializer(many=True)
profiles = CalendarProfileSerializer(many=True)
categories = CategorySerializer(many=True)
funding_categories = FundingCategorySerializer(many=True)
types = TypeSerializer(many=True)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment