Skip to content
Snippets Groups Projects
Commit 6e41790c authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Add serializers for LinkType and LicenceType

parent a8deaf3a
No related branches found
No related tags found
No related merge requests found
Pipeline #2496 failed
...@@ -100,7 +100,7 @@ python-versions = "*" ...@@ -100,7 +100,7 @@ python-versions = "*"
[[package]] [[package]]
name = "Django" name = "Django"
version = "3.2.15" version = "3.2.16"
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.15-py3-none-any.whl", hash = "sha256:115baf5049d5cf4163e43492cdc7139c306ed6d451e7d3571fe9612903903713"}, {file = "Django-3.2.16-py3-none-any.whl", hash = "sha256:18ba8efa36b69cfcd4b670d0fa187c6fe7506596f0ababe580e16909bcdec121"},
{file = "Django-3.2.15.tar.gz", hash = "sha256:f71934b1a822f14a86c9ac9634053689279cd04ae69cb6ade4a59471b886582b"}, {file = "Django-3.2.16.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:322a5699daecf7c6fd60e68852f36f2ecbb6a36ff6e6e973e0d2bb6fca203ee6"}, {file = "identify-2.5.6.tar.gz", hash = "sha256:6c32dbd747aa4ceee1df33f25fed0b0f6e0d65721b15bd151307ff7056d50245"},
] ]
idna = [ idna = [
{file = "idna-3.4-py3-none-any.whl", hash = "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"}, {file = "idna-3.4-py3-none-any.whl", hash = "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"},
......
...@@ -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
......
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