From 4babc1646ee3102320bbbe67017698acc8344800 Mon Sep 17 00:00:00 2001 From: SDE Date: Tue, 11 Jul 2023 13:23:58 +0300 Subject: [PATCH] 0.0.14 profile routines --- AuthApp/forms.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/AuthApp/forms.py b/AuthApp/forms.py index 75128c6..25e044f 100644 --- a/AuthApp/forms.py +++ b/AuthApp/forms.py @@ -10,12 +10,15 @@ from .models import * # from datetimepicker.helpers import js_loader_url class RegistrationForm(forms.Form): + from .models import account_type_choices + account_type = forms.ChoiceField(choices=account_type_choices, initial='sender', required=True) firstname = forms.CharField(required=False) lastname = forms.CharField(required=False) email = forms.EmailField() password = forms.CharField(widget=forms.PasswordInput()) confirm_password = forms.CharField(widget=forms.PasswordInput()) tel = forms.CharField() + agreement = forms.BooleanField(initial=False, required=True) # # class PersonForm(NgModelFormMixin, NgFormValidationMixin, NgModelForm, Bootstrap3ModelForm):