comparison gpp/bio/forms.py @ 31:5eed5e7c1c98

Remove fields in the user profile that were superceded by the django-elsewhere application: website, icq, aim, etc.
author Brian Neal <bgneal@gmail.com>
date Sun, 03 May 2009 20:27:57 +0000
parents f408971657b9
children c0d3b09c9b95
comparison
equal deleted inserted replaced
30:a39907cd63e2 31:5eed5e7c1c98
28 class EditUserProfileForm(forms.ModelForm): 28 class EditUserProfileForm(forms.ModelForm):
29 """Form for editing the fields of the UserProfile model.""" 29 """Form for editing the fields of the UserProfile model."""
30 location = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 })) 30 location = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 }))
31 occupation = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 })) 31 occupation = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 }))
32 interests = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 })) 32 interests = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 }))
33 website_1 = forms.URLField(required=False, widget=forms.TextInput(attrs={'size' : 64 }))
34 website_2 = forms.URLField(required=False, widget=forms.TextInput(attrs={'size' : 64 }))
35 website_3 = forms.URLField(required=False, widget=forms.TextInput(attrs={'size' : 64 }))
36 33
37 class Meta: 34 class Meta:
38 model = UserProfile 35 model = UserProfile
39 exclude = ('user', 'avatar', 'profile_html', 'signature_html') 36 exclude = ('user', 'avatar', 'profile_html', 'signature_html')
40 37
107 return None 104 return None
108 105
109 def get_filename(self): 106 def get_filename(self):
110 return self.cleaned_data['avatar_file'].name 107 return self.cleaned_data['avatar_file'].name
111 108
112 # vim: ts=4 sw=4