From 0c8161312e999a8ca7a2647aaec34349136f2a34 Mon Sep 17 00:00:00 2001 From: www-data Date: Mon, 23 Apr 2018 14:24:45 +0300 Subject: [PATCH] Make ip_address is required=False --- abonapp/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abonapp/forms.py b/abonapp/forms.py index f3e5bd1..140f310 100644 --- a/abonapp/forms.py +++ b/abonapp/forms.py @@ -61,7 +61,7 @@ class AbonForm(forms.ModelForm): ip_address = forms.CharField(widget=forms.TextInput(attrs={ 'pattern': IP_ADDR_REGEX - }), label=_('Ip Address')) + }), label=_('Ip Address'), required=False) class Meta: model = models.Abon