form profile

This commit is contained in:
Cayo Puigdefabregas 2023-10-10 10:52:04 +02:00
parent 4226683c84
commit b0f3e54ea1
1 changed files with 11 additions and 0 deletions

11
idhub/forms.py Normal file
View File

@ -0,0 +1,11 @@
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')