diff bio/forms.py @ 609:678a1a2ef55a

For issue 16, add country flag icons to user profiles & forum posts.
author Brian Neal <bgneal@gmail.com>
date Sat, 28 Jul 2012 15:12:09 -0500
parents ee87ea74d46b
children 5be850a66dfc
line wrap: on
line diff
--- a/bio/forms.py	Thu Jul 26 14:18:10 2012 -0500
+++ b/bio/forms.py	Sat Jul 28 15:12:09 2012 -0500
@@ -26,9 +26,9 @@
 
 class EditUserProfileForm(forms.ModelForm):
     """Form for editing the fields of the UserProfile model."""
-    location = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 }))
-    occupation = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 }))
-    interests = forms.CharField(required=False, widget=forms.TextInput(attrs={'size' : 64 }))
+    location = forms.CharField(required=False, widget=forms.TextInput(attrs={'size': 64 }))
+    occupation = forms.CharField(required=False, widget=forms.TextInput(attrs={'size': 64 }))
+    interests = forms.CharField(required=False, widget=forms.TextInput(attrs={'size': 64 }))
     time_zone = forms.CharField(required=False, widget=forms.HiddenInput())
     use_24_time = forms.BooleanField(label='Show times in 24-hour mode', required=False)
     profile_text = forms.CharField(required=False,
@@ -42,7 +42,7 @@
 
     class Meta:
         model = UserProfile
-        fields = ('location', 'birthday', 'occupation', 'interests',
+        fields = ('location', 'country', 'birthday', 'occupation', 'interests',
             'profile_text', 'hide_email', 'signature', 'time_zone',
             'use_24_time', 'auto_favorite', 'auto_subscribe')