xmpp.chapril.org-conversejs/accounts/forms.py
2012-03-04 09:28:25 +01:00

22 lines
444 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
exclude = [
'suggested',
'translated',
]
class UserForm(forms.ModelForm):
class Meta:
model = User
fields = [
'first_name',
'last_name',
'email',
]