form profile
This commit is contained in:
parent
4226683c84
commit
b0f3e54ea1
11
idhub/forms.py
Normal file
11
idhub/forms.py
Normal 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')
|
Loading…
Reference in a new issue