b639c04549
- The former `RegistrationUserProfileForm` is splitted in two. - There is a new form: `RegistrationCofProfileForm`
16 lines
335 B
Python
16 lines
335 B
Python
from django import forms
|
|
from django.contrib.auth.models import User
|
|
|
|
from .models import Profile
|
|
|
|
|
|
class UserForm(forms.ModelForm):
|
|
class Meta:
|
|
model = User
|
|
fields = ["first_name", "last_name"]
|
|
|
|
|
|
class ProfileForm(forms.ModelForm):
|
|
class Meta:
|
|
model = Profile
|
|
fields = ["phone", "departement"]
|