diff gpp/bio/forms.py @ 120:f8f4514b806a

Added a 24-hour time preference flag in the user profile. Added forum template tags for showing forum dates/times adjusted for the user's time zone.
author Brian Neal <bgneal@gmail.com>
date Sun, 25 Oct 2009 21:55:28 +0000
parents c0d3b09c9b95
children c515b7401078
line wrap: on
line diff
--- a/gpp/bio/forms.py	Sat Oct 24 02:39:54 2009 +0000
+++ b/gpp/bio/forms.py	Sun Oct 25 21:55:28 2009 +0000
@@ -31,10 +31,11 @@
     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)
 
     class Meta:
         model = UserProfile
-        exclude = ('user', 'avatar', 'profile_html', 'signature_html')
+        exclude = ('user', 'avatar', 'profile_html', 'signature_html', 'forum_post_count')
 
     class Media:
         css = {