Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
steering
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
AURA
steering
Commits
33a0fc82
Verified
Commit
33a0fc82
authored
8 months ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
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
!52
new program endpoint
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
program/serializers.py
+16
-1
16 additions, 1 deletion
program/serializers.py
with
16 additions
and
1 deletion
program/serializers.py
+
16
−
1
View file @
33a0fc82
...
...
@@ -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
=
Calendar
ProfileSerializer
(
many
=
True
)
categories
=
CategorySerializer
(
many
=
True
)
funding_categories
=
FundingCategorySerializer
(
many
=
True
)
types
=
TypeSerializer
(
many
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment