2012-03-02 16:16:20 +01:00
|
|
|
from django import forms
|
|
|
|
|
|
|
|
from accounts.models import Profile
|
2012-03-02 16:38:41 +01:00
|
|
|
from django.contrib.auth.models import User
|
2012-03-02 16:16:20 +01:00
|
|
|
|
|
|
|
class ProfileForm(forms.ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = Profile
|
2012-03-02 16:38:41 +01:00
|
|
|
|
|
|
|
class UserForm(forms.ModelForm):
|
|
|
|
class Meta:
|
|
|
|
model = User
|
|
|
|
fields = [
|
|
|
|
'first_name',
|
|
|
|
'last_name',
|
|
|
|
'email',
|
|
|
|
]
|