diff --git a/poetry.lock b/poetry.lock index 706ccad95e096af8ad344e05d24ac84aa5816e2b..622f3e36045b45cb22c1188b5acfd5b28b484cbe 100644 --- a/poetry.lock +++ b/poetry.lock @@ -100,7 +100,7 @@ python-versions = "*" [[package]] 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." category = "main" optional = false @@ -267,7 +267,7 @@ tornado = ["tornado (>=0.2)"] [[package]] name = "identify" -version = "2.5.5" +version = "2.5.6" description = "File identification library for Python" category = "dev" optional = false @@ -747,8 +747,8 @@ distlib = [ {file = "distlib-0.3.6.tar.gz", hash = "sha256:14bad2d9b04d3a36127ac97f30b12a19268f211063d8f8ee4f47108896e11b46"}, ] Django = [ - {file = "Django-3.2.15-py3-none-any.whl", hash = "sha256:115baf5049d5cf4163e43492cdc7139c306ed6d451e7d3571fe9612903903713"}, - {file = "Django-3.2.15.tar.gz", hash = "sha256:f71934b1a822f14a86c9ac9634053689279cd04ae69cb6ade4a59471b886582b"}, + {file = "Django-3.2.16-py3-none-any.whl", hash = "sha256:18ba8efa36b69cfcd4b670d0fa187c6fe7506596f0ababe580e16909bcdec121"}, + {file = "Django-3.2.16.tar.gz", hash = "sha256:3adc285124244724a394fa9b9839cc8cd116faf7d159554c43ecdaa8cdf0b94d"}, ] django-cors-headers = [ {file = "django-cors-headers-3.13.0.tar.gz", hash = "sha256:f9dc6b4e3f611c3199700b3e5f3398c28757dcd559c2f82932687f3d0443cfdf"}, @@ -797,8 +797,8 @@ gunicorn = [ {file = "gunicorn-20.1.0.tar.gz", hash = "sha256:e0a968b5ba15f8a328fdfd7ab1fcb5af4470c28aaf7e55df02a99bc13138e6e8"}, ] identify = [ - {file = "identify-2.5.5-py2.py3-none-any.whl", hash = "sha256:ef78c0d96098a3b5fe7720be4a97e73f439af7cf088ebf47b620aeaa10fadf97"}, - {file = "identify-2.5.5.tar.gz", hash = "sha256:322a5699daecf7c6fd60e68852f36f2ecbb6a36ff6e6e973e0d2bb6fca203ee6"}, + {file = "identify-2.5.6-py2.py3-none-any.whl", hash = "sha256:b276db7ec52d7e89f5bc4653380e33054ddc803d25875952ad90b0f012cbcdaa"}, + {file = "identify-2.5.6.tar.gz", hash = "sha256:6c32dbd747aa4ceee1df33f25fed0b0f6e0d65721b15bd151307ff7056d50245"}, ] idna = [ {file = "idna-3.4-py3-none-any.whl", hash = "sha256:90b77e79eaa3eba6de819a0c442c0b4ceefc341a7a2ab77d7562bf49f425c5c2"}, diff --git a/program/serializers.py b/program/serializers.py index c795d2a29989f54cac7fd407d60fc4c1d19a6dc6..2bde105665ffada170687b0101c6c4aa3ea9565b 100644 --- a/program/serializers.py +++ b/program/serializers.py @@ -33,6 +33,8 @@ from program.models import ( Host, HostLink, Language, + LicenseType, + LinkType, MusicFocus, Note, NoteLink, @@ -156,6 +158,18 @@ class CategorySerializer(serializers.ModelSerializer): 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 Meta: model = HostLink