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
6e41790c
Commit
6e41790c
authored
2 years ago
by
Ernesto Rico Schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Add serializers for LinkType and LicenceType
parent
a8deaf3a
No related branches found
No related tags found
No related merge requests found
Pipeline
#2496
failed
2 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
poetry.lock
+6
-6
6 additions, 6 deletions
poetry.lock
program/serializers.py
+14
-0
14 additions, 0 deletions
program/serializers.py
with
20 additions
and
6 deletions
poetry.lock
+
6
−
6
View file @
6e41790c
...
@@ -100,7 +100,7 @@ python-versions = "*"
...
@@ -100,7 +100,7 @@ python-versions = "*"
[[
package
]]
[[
package
]]
name
=
"Django"
name
=
"Django"
version
=
"3.2.1
5
"
version
=
"3.2.1
6
"
description
=
"A high-level Python Web framework that encourages rapid development and clean, pragmatic design."
description
=
"A high-level Python Web framework that encourages rapid development and clean, pragmatic design."
category
=
"main"
category
=
"main"
optional
=
false
optional
=
false
...
@@ -267,7 +267,7 @@ tornado = ["tornado (>=0.2)"]
...
@@ -267,7 +267,7 @@ tornado = ["tornado (>=0.2)"]
[[
package
]]
[[
package
]]
name
=
"identify"
name
=
"identify"
version
=
"2.5.
5
"
version
=
"2.5.
6
"
description
=
"File identification library for Python"
description
=
"File identification library for Python"
category
=
"dev"
category
=
"dev"
optional
=
false
optional
=
false
...
@@ -747,8 +747,8 @@ distlib = [
...
@@ -747,8 +747,8 @@ distlib = [
{file
=
"distlib-0.3.6.tar.gz"
,
hash
=
"sha256:14bad2d9b04d3a36127ac97f30b12a19268f211063d8f8ee4f47108896e11b46"
}
,
{file
=
"distlib-0.3.6.tar.gz"
,
hash
=
"sha256:14bad2d9b04d3a36127ac97f30b12a19268f211063d8f8ee4f47108896e11b46"
}
,
]
]
Django
=
[
Django
=
[
{file
=
"Django-3.2.1
5
-py3-none-any.whl"
,
hash
=
"sha256:1
15baf5049d5cf4163e43492cdc7139c306ed6d451e7d3571fe9612903903713
"
}
,
{file
=
"Django-3.2.1
6
-py3-none-any.whl"
,
hash
=
"sha256:1
8ba8efa36b69cfcd4b670d0fa187c6fe7506596f0ababe580e16909bcdec121
"
}
,
{file
=
"Django-3.2.1
5
.tar.gz"
,
hash
=
"sha256:
f71934b1a822f14a86c9ac9634053689279cd04ae69cb6ade4a59471b886582b
"
}
,
{file
=
"Django-3.2.1
6
.tar.gz"
,
hash
=
"sha256:
3adc285124244724a394fa9b9839cc8cd116faf7d159554c43ecdaa8cdf0b94d
"
}
,
]
]
django-cors-headers
=
[
django-cors-headers
=
[
{file
=
"django-cors-headers-3.13.0.tar.gz"
,
hash
=
"sha256:f9dc6b4e3f611c3199700b3e5f3398c28757dcd559c2f82932687f3d0443cfdf"
}
,
{file
=
"django-cors-headers-3.13.0.tar.gz"
,
hash
=
"sha256:f9dc6b4e3f611c3199700b3e5f3398c28757dcd559c2f82932687f3d0443cfdf"
}
,
...
@@ -797,8 +797,8 @@ gunicorn = [
...
@@ -797,8 +797,8 @@ gunicorn = [
{file
=
"gunicorn-20.1.0.tar.gz"
,
hash
=
"sha256:e0a968b5ba15f8a328fdfd7ab1fcb5af4470c28aaf7e55df02a99bc13138e6e8"
}
,
{file
=
"gunicorn-20.1.0.tar.gz"
,
hash
=
"sha256:e0a968b5ba15f8a328fdfd7ab1fcb5af4470c28aaf7e55df02a99bc13138e6e8"
}
,
]
]
identify
=
[
identify
=
[
{file
=
"identify-2.5.
5
-py2.py3-none-any.whl"
,
hash
=
"sha256:
ef78c0d96098a3b5fe7720be4a97e73f439af7cf088ebf47b620aeaa10fadf97
"
}
,
{file
=
"identify-2.5.
6
-py2.py3-none-any.whl"
,
hash
=
"sha256:
b276db7ec52d7e89f5bc4653380e33054ddc803d25875952ad90b0f012cbcdaa
"
}
,
{file
=
"identify-2.5.
5
.tar.gz"
,
hash
=
"sha256:
322a5699daecf7c6fd60e68852
f3
6
f2
ecbb6a36ff6e6e973e0d2bb6fca203ee6
"
}
,
{file
=
"identify-2.5.
6
.tar.gz"
,
hash
=
"sha256:
6c32dbd747aa4ceee1d
f3
3
f2
5fed0b0f6e0d65721b15bd151307ff7056d50245
"
}
,
]
]
idna
=
[
idna
=
[
{file
=
"idna-3.4-py3-none-any.whl"
,
hash
=
"sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"
}
,
{file
=
"idna-3.4-py3-none-any.whl"
,
hash
=
"sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"
}
,
...
...
This diff is collapsed.
Click to expand it.
program/serializers.py
+
14
−
0
View file @
6e41790c
...
@@ -33,6 +33,8 @@ from program.models import (
...
@@ -33,6 +33,8 @@ from program.models import (
Host
,
Host
,
HostLink
,
HostLink
,
Language
,
Language
,
LicenseType
,
LinkType
,
MusicFocus
,
MusicFocus
,
Note
,
Note
,
NoteLink
,
NoteLink
,
...
@@ -156,6 +158,18 @@ class CategorySerializer(serializers.ModelSerializer):
...
@@ -156,6 +158,18 @@ class CategorySerializer(serializers.ModelSerializer):
fields
=
(
"
description
"
,
"
id
"
,
"
is_active
"
,
"
name
"
,
"
slug
"
,
"
subtitle
"
)
fields
=
(
"
description
"
,
"
id
"
,
"
is_active
"
,
"
name
"
,
"
slug
"
,
"
subtitle
"
)
class
LinkTypeSerializer
(
serializers
.
ModelSerializer
):
class
Meta
:
model
=
LinkType
fields
=
(
"
name
"
,
"
type
"
)
class
LicenseSerializer
(
serializers
.
ModelSerializer
):
class
Meta
:
model
=
LicenseType
fields
=
(
"
name
"
,
"
type
"
)
class
HostLinkSerializer
(
serializers
.
ModelSerializer
):
class
HostLinkSerializer
(
serializers
.
ModelSerializer
):
class
Meta
:
class
Meta
:
model
=
HostLink
model
=
HostLink
...
...
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