mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
only validate form fileds if the form is enabled at all
This commit is contained in:
parent
9f8281f9dc
commit
1a3d7a3d00
@ -174,6 +174,7 @@ class ConfigureForm(forms.Form):
|
|||||||
else:
|
else:
|
||||||
dynamicdns_server = ""
|
dynamicdns_server = ""
|
||||||
|
|
||||||
|
if cleaned_data.get('enabled'):
|
||||||
"""check if gnudip server or update URL is filled"""
|
"""check if gnudip server or update URL is filled"""
|
||||||
if not dynamicdns_update_url and not dynamicdns_server:
|
if not dynamicdns_update_url and not dynamicdns_server:
|
||||||
raise forms.ValidationError('please give update URL or \
|
raise forms.ValidationError('please give update URL or \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user