Fix adding asset restrictions

This commit is contained in:
2023-02-11 17:45:22 +00:00
parent 33d8e26c9b
commit 7afdd39af7
4 changed files with 9 additions and 3 deletions

View File

@@ -333,7 +333,7 @@ class AssetRestrictionForm(RestrictedFormMixin, ModelForm):
"pairs": "Comma-separated list of pairs to restrict when a webhook is received. This does nothing on its own.",
}
pairs_parsed = forms.BooleanField(widget=forms.HiddenInput)
pairs_parsed = forms.BooleanField(widget=forms.HiddenInput, required=False)
def clean(self):
cleaned_data = super(AssetRestrictionForm, self).clean()
@@ -351,5 +351,7 @@ class AssetRestrictionForm(RestrictedFormMixin, ModelForm):
return
cleaned_data["pairs_parsed"] = new_pairs
else:
cleaned_data["pairs_parsed"] = {}
return cleaned_data