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
69a9f6da
Verified
Commit
69a9f6da
authored
8 months ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
feat: exclude created & updated fields from episode serializer for calendar
parent
ed684a83
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
+9
-1
9 additions, 1 deletion
program/serializers.py
with
9 additions
and
1 deletion
program/serializers.py
+
9
−
1
View file @
69a9f6da
...
...
@@ -1393,6 +1393,14 @@ class CalendarSchemaSerializer(serializers.Serializer):
class
Meta
(
TimeSlotSerializer
.
Meta
):
fields
=
[
f
for
f
in
TimeSlotSerializer
.
Meta
.
fields
if
f
!=
"
memo
"
]
class
CalendarEpisodeSerializer
(
NoteSerializer
):
class
Meta
(
NoteSerializer
.
Meta
):
fields
=
[
field
for
field
in
NoteSerializer
.
Meta
.
fields
if
field
not
in
[
"
created_at
"
,
"
created_by
"
,
"
updated_at
"
,
"
updated_by
"
]
]
shows
=
ShowSerializer
(
many
=
True
)
timeslots
=
CalendarTimeslotSerializer
(
many
=
True
)
profiles
=
ProfileSerializer
(
many
=
True
)
...
...
@@ -1404,6 +1412,6 @@ class CalendarSchemaSerializer(serializers.Serializer):
languages
=
LanguageSerializer
(
many
=
True
)
music_focuses
=
MusicFocusSerializer
(
many
=
True
)
program
=
BasicProgramEntrySerializer
(
many
=
True
)
episodes
=
Not
eSerializer
(
many
=
True
)
episodes
=
CalendarEpisod
eSerializer
(
many
=
True
)
licenses
=
LicenseSerializer
(
many
=
True
)
link_types
=
LinkTypeSerializer
(
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