Package madrona :: Package user_profile :: Module forms
[hide private]

Source Code for Module madrona.user_profile.forms

 1  from django import forms 
 2  from models import UserProfile 
 3  from django.contrib.auth.models import User 
 4   
5 -class UserForm(forms.ModelForm):
6 - class Meta:
7 model = User 8 fields = ['first_name', 'last_name', 'email']
9
10 -class UserProfileForm(forms.ModelForm):
11 - class Meta:
12 model = UserProfile 13 exclude = ['user']
14