Skip to content

Commit

Permalink
remove duplicate default keys in api spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Floris272 committed Jul 31, 2024
1 parent 3a1f0ac commit 4bb5053
Show file tree
Hide file tree
Showing 2 changed files with 491 additions and 502 deletions.
5 changes: 2 additions & 3 deletions src/open_producten/producttypes/serializers/producttype.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
from django.db import transaction

from rest_framework import serializers

from ..models import Category, Condition, ProductType, Tag, Upn
from .children import (
ConditionSerializer,
FieldSerializer,
Expand All @@ -11,6 +9,7 @@
QuestionSerializer,
TagSerializer,
)
from ..models import Category, Condition, ProductType, Tag, Upn


class SimpleCategorySerializer(serializers.ModelSerializer):
Expand All @@ -33,7 +32,7 @@ class ProductTypeSerializer(serializers.ModelSerializer):
queryset=Upn.objects.all()
)

conditions = ConditionSerializer(many=True, default=[], read_only=True)
conditions = ConditionSerializer(many=True, read_only=True)
condition_ids = serializers.PrimaryKeyRelatedField(
many=True, write_only=True, queryset=Condition.objects.all(), default=[]
)
Expand Down
Loading

0 comments on commit 4bb5053

Please sign in to comment.