Skip to content

Commit

Permalink
Allo the requirements field in the serializer to be nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
rolandgeider committed Dec 21, 2024
1 parent 18c8f62 commit a30e4fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion wger/manager/api/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,10 @@ class BaseConfigSerializer(serializers.ModelSerializer):
Base Config serializer
"""

requirements = serializers.JSONField(validators=[validate_requirements])
requirements = serializers.JSONField(
validators=[validate_requirements],
allow_null=True,
)


class WeightConfigSerializer(BaseConfigSerializer):
Expand Down

0 comments on commit a30e4fe

Please sign in to comment.