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):