from django import forms
from django.contrib.auth.forms import UserCreationForm
from django.contrib.auth.models import User

class RegisterForm(UserCreationForm):
    gender = forms.CharField(max_length=10)
    country = forms.CharField(max_length=20)
    ethnicity = forms.CharField(max_length=20)
    age = forms.IntegerField()
    class Meta:
        model = User
        fields = ['username', 'password1', 'password2', 'gender', 'country', 'ethnicity', 'age']
