xmpp.chapril.org-conversejs/accounts/forms.py
2012-03-02 16:38:41 +01:00

18 lines
359 B
Python

from django import forms
from accounts.models import Profile
from django.contrib.auth.models import User
class ProfileForm(forms.ModelForm):
class Meta:
model = Profile
class UserForm(forms.ModelForm):
class Meta:
model = User
fields = [
'first_name',
'last_name',
'email',
]