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
01e02eac
Commit
01e02eac
authored
2 years ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Remove abbrev fields from serializers
parent
1e23212f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
program/serializers.py
+5
-5
5 additions, 5 deletions
program/serializers.py
with
5 additions
and
5 deletions
program/serializers.py
+
5
−
5
View file @
01e02eac
...
@@ -161,7 +161,7 @@ class CategorySerializer(serializers.ModelSerializer):
...
@@ -161,7 +161,7 @@ class CategorySerializer(serializers.ModelSerializer):
class
Meta
:
class
Meta
:
model
=
Category
model
=
Category
# TODO: replace `category` with `name` when the dashboard is updated
# TODO: replace `category` with `name` when the dashboard is updated
fields
=
(
"
id
"
,
"
category
"
,
"
abbrev
"
,
"
slug
"
,
"
is_active
"
,
"
description
"
)
fields
=
(
"
id
"
,
"
category
"
,
"
slug
"
,
"
is_active
"
,
"
description
"
)
class
HostLinkSerializer
(
serializers
.
ModelSerializer
):
class
HostLinkSerializer
(
serializers
.
ModelSerializer
):
...
@@ -237,7 +237,7 @@ class TopicSerializer(serializers.ModelSerializer):
...
@@ -237,7 +237,7 @@ class TopicSerializer(serializers.ModelSerializer):
class
Meta
:
class
Meta
:
model
=
Topic
model
=
Topic
# TODO: replace `topic` with `name` when the dashboard is updated
# TODO: replace `topic` with `name` when the dashboard is updated
fields
=
(
"
id
"
,
"
topic
"
,
"
abbrev
"
,
"
slug
"
,
"
is_active
"
)
fields
=
(
"
id
"
,
"
topic
"
,
"
slug
"
,
"
is_active
"
)
class
MusicFocusSerializer
(
serializers
.
ModelSerializer
):
class
MusicFocusSerializer
(
serializers
.
ModelSerializer
):
...
@@ -247,7 +247,7 @@ class MusicFocusSerializer(serializers.ModelSerializer):
...
@@ -247,7 +247,7 @@ class MusicFocusSerializer(serializers.ModelSerializer):
class
Meta
:
class
Meta
:
model
=
MusicFocus
model
=
MusicFocus
# TODO: replace `focus` with `name` when the dashboard is updated
# TODO: replace `focus` with `name` when the dashboard is updated
fields
=
(
"
id
"
,
"
focus
"
,
"
abbrev
"
,
"
slug
"
,
"
is_active
"
)
fields
=
(
"
id
"
,
"
focus
"
,
"
slug
"
,
"
is_active
"
)
class
TypeSerializer
(
serializers
.
ModelSerializer
):
class
TypeSerializer
(
serializers
.
ModelSerializer
):
...
@@ -267,7 +267,7 @@ class FundingCategorySerializer(serializers.ModelSerializer):
...
@@ -267,7 +267,7 @@ class FundingCategorySerializer(serializers.ModelSerializer):
class
Meta
:
class
Meta
:
model
=
FundingCategory
model
=
FundingCategory
# TODO: replace `fundingcategory` with `name` when the dashboard is updated
# TODO: replace `fundingcategory` with `name` when the dashboard is updated
fields
=
(
"
id
"
,
"
fundingcategory
"
,
"
abbrev
"
,
"
slug
"
,
"
is_active
"
)
fields
=
(
"
id
"
,
"
fundingcategory
"
,
"
slug
"
,
"
is_active
"
)
class
ShowLinkSerializer
(
serializers
.
ModelSerializer
):
class
ShowLinkSerializer
(
serializers
.
ModelSerializer
):
...
@@ -341,7 +341,7 @@ class ShowSerializer(serializers.HyperlinkedModelSerializer):
...
@@ -341,7 +341,7 @@ class ShowSerializer(serializers.HyperlinkedModelSerializer):
"
thumbnails
"
,
"
thumbnails
"
,
"
is_active
"
,
"
is_active
"
,
"
is_public
"
,
"
is_public
"
,
"
links
"
"
links
"
,
)
)
def
create
(
self
,
validated_data
):
def
create
(
self
,
validated_data
):
...
...
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