kpsul/gestion/forms.py

17 lines
335 B
Python
Raw Normal View History

2017-02-10 23:12:12 +01:00
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
2017-02-10 23:12:12 +01:00
fields = ["phone", "departement"]