Skip to content

Commit

Permalink
make input data hash editable
Browse files Browse the repository at this point in the history
  • Loading branch information
hasan7n committed Sep 22, 2023
1 parent eec2c66 commit d9ff55e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion server/report/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,13 @@ class Meta:
read_only_fields = ["owner"]

def validate(self, data):
editable_fields = ["is_valid", "user_metadata", "metadata", "contents"]
editable_fields = [
"is_valid",
"user_metadata",
"metadata",
"contents",
"input_data_hash",
]
for k, v in data.items():
if k not in editable_fields:
if v != getattr(self.instance, k):
Expand Down

0 comments on commit d9ff55e

Please sign in to comment.