diff --git a/program/serializers.py b/program/serializers.py index 86149f692ef8140b46f38edb586934ac607bfc7b..47c3daa44cb3531e8a4302fd2c5d3dbbcc0859fd 100644 --- a/program/serializers.py +++ b/program/serializers.py @@ -162,11 +162,6 @@ class CategorySerializer(serializers.ModelSerializer): fields = ("id", "name", "subtitle", "slug", "is_active", "description") -class LinkSerializer(serializers.ModelSerializer): - class Meta: - fields = ("description", "url") - - class HostLinkSerializer(serializers.ModelSerializer): class Meta: model = HostLink @@ -288,9 +283,10 @@ class FundingCategorySerializer(SerializerWithIdNameSlugIsActive): model = FundingCategory -class ShowLinkSerializer(LinkSerializer): +class ShowLinkSerializer(serializers.ModelSerializer): class Meta: model = ShowLink + fields = ("description", "url") class ShowSerializer(serializers.HyperlinkedModelSerializer): @@ -649,9 +645,10 @@ class TimeSlotSerializer(serializers.ModelSerializer): return instance -class NoteLinkSerializer(LinkSerializer): +class NoteLinkSerializer(serializers.ModelSerializer): class Meta: model = NoteLink + fields = ("description", "url") class NoteSerializer(serializers.ModelSerializer):