From b0f3e54ea10c97a9c8365131dfa31ac9183ab110 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 10 Oct 2023 10:52:04 +0200 Subject: [PATCH] form profile --- idhub/forms.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 idhub/forms.py diff --git a/idhub/forms.py b/idhub/forms.py new file mode 100644 index 0000000..f384507 --- /dev/null +++ b/idhub/forms.py @@ -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') \ No newline at end of file