From 76eda01d2df6530915c38020153dd717599e0e96 Mon Sep 17 00:00:00 2001 From: http Date: Thu, 6 Apr 2017 15:55:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=BF=D0=BE=D0=B4=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=B8=D0=BB=20regexp=20=D0=B4=D0=BB=D1=8F=20=D0=BC=D0=B0=D0=BA?= =?UTF-8?q?=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- abonapp/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abonapp/forms.py b/abonapp/forms.py index a253024..4d3e3e0 100644 --- a/abonapp/forms.py +++ b/abonapp/forms.py @@ -76,7 +76,7 @@ class AbonForm(forms.ModelForm): class Opt82Form(forms.ModelForm): - mac = MACAddressField(widget=forms.TextInput(attrs={'class': 'form-control', 'pattern': r'^([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})$', 'required': ''})) + mac = MACAddressField(widget=forms.TextInput(attrs={'class': 'form-control', 'pattern': r'^([0-9A-Fa-f]{2}[:]){5}([0-9A-Fa-f]{2})$', 'required': ''})) class Meta: model = models.Opt82 fields = '__all__'