jobportal/users/forms.py
2020-12-31 15:10:53 +01:00

13 lines
423 B
Python

from django import forms
from django.contrib.auth.forms import UserCreationForm
from users.models import Account
class AccountRegisterForm(UserCreationForm):
CHOICES = [('is_employee', 'Employee'), ('is_employer', 'Employer')]
user_types = forms.CharField(label="User Type", widget=forms.RadioSelect(choices=CHOICES))
class Meta:
model = Account
fields = ['email', 'first_name', 'last_name']