2023-10-10 08:52:04 +00:00
|
|
|
from django import forms
|
|
|
|
from django.contrib.auth.models import User
|
|
|
|
|
|
|
|
|
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')
|