IdHub/idhub/forms.py

11 lines
282 B
Python
Raw Normal View History

2023-10-10 08:52:04 +00:00
from django import forms
from django.contrib.auth.models import User
class ProfileForm(form.ModelForm):
MANDATORY_FIELDS = ['first_name', 'last_name', 'email']
OPTIONAL_FIELDS = []
class Meta:
model = User
fields = ('forst_name', 'last_name', 'email')