IdHub/idhub/user/forms.py

10 lines
249 B
Python
Raw Normal View History

2023-10-10 08:52:04 +00:00
from django import forms
2023-10-25 15:49:17 +00:00
from idhub_auth.models import User
2023-10-10 08:52:04 +00:00
2023-10-11 07:52:05 +00:00
class ProfileForm(forms.ModelForm):
2023-10-10 08:52:04 +00:00
MANDATORY_FIELDS = ['first_name', 'last_name', 'email']
class Meta:
model = User
2023-10-11 07:52:05 +00:00
fields = ('first_name', 'last_name', 'email')