From 9cd02f40b96e56bf6cac7c8c72f9ebf2aff8ee95 Mon Sep 17 00:00:00 2001 From: bashmak Date: Thu, 18 May 2017 12:00:09 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=BE=D1=80=D0=BC=D0=B0=20=D0=B4=D0=BB?= =?UTF-8?q?=D1=8F=20=D0=B4=D0=B8=D0=BD=D0=B0=D0=BC=D0=B8=D1=87=D0=B5=D1=81?= =?UTF-8?q?=D0=BA=D0=B8=D1=85=20=D0=BF=D0=BE=D0=BB=D0=B5=D0=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- abonapp/forms.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/abonapp/forms.py b/abonapp/forms.py index 5951ac1..cf31d19 100644 --- a/abonapp/forms.py +++ b/abonapp/forms.py @@ -124,3 +124,15 @@ class PassportForm(forms.ModelForm): initials = { 'date_of_acceptance': datetime(year=2014, month=6, day=1) } + + +class ExtraFieldForm(forms.ModelForm): + + class Meta: + model = models.ExtraFieldsModel + fields = '__all__' + widgets = { + 'title': forms.TextInput(attrs={'class': 'form-control'}), + 'field_type': forms.Select(attrs={'class': 'form-control'}), + 'data': forms.TextInput(attrs={'class': 'form-control'}) + }