IdHub/idhub/admin/forms.py

10 lines
270 B
Python
Raw Normal View History

2023-10-13 11:37:26 +00:00
from django import forms
from django.contrib.auth.models import User
class ProfileForm(forms.ModelForm):
2023-10-13 19:04:44 +00:00
MANDATORY_FIELDS = ['first_name', 'last_name', 'email', 'username']
2023-10-13 11:37:26 +00:00
class Meta:
model = User
fields = ('first_name', 'last_name', 'email')