Skip to content

Commit

Permalink
Fix Attribute creation
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenklar committed Aug 29, 2019
1 parent 4e28d6b commit 1e7d614
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rdmo/domain/serializers/v1.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
class AttributeSerializer(serializers.ModelSerializer):

key = serializers.CharField(required=True)
parent = serializers.PrimaryKeyRelatedField(queryset=Attribute.objects.all(), default=None)
parent = serializers.PrimaryKeyRelatedField(queryset=Attribute.objects.all(), default=None, allow_null=True)
path = serializers.CharField(required=False)

class Meta:
model = Attribute
Expand Down

0 comments on commit 1e7d614

Please sign in to comment.