Mercurial > public > sg101
diff gpp/bio/forms.py @ 390:e0523e17ea43
Fixing #175; add an auto-subscribe and auto-favorite forum topic feature. Added 2 flags to the user profile. Added 2 functions that are called on the post post-save signal that auto-favorite and auto-subscribe the post creator if they have requested this service.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 21 Mar 2011 00:39:52 +0000 |
parents | e28aee19f7c9 |
children | 452835f4429f |
line wrap: on
line diff
--- a/gpp/bio/forms.py Sun Mar 20 20:23:29 2011 +0000 +++ b/gpp/bio/forms.py Mon Mar 21 00:39:52 2011 +0000 @@ -32,15 +32,19 @@ 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, - widget=forms.Textarea(attrs={'class': 'markItUp'})) + widget=forms.Textarea(attrs={'class': 'markItUp'})) signature = forms.CharField(required=False, - widget=forms.Textarea(attrs={'class': 'markItUp'})) + widget=forms.Textarea(attrs={'class': 'markItUp'})) + auto_favorite = forms.BooleanField( + label='Automatically favorite every forum topic I create or reply to', required=False) + auto_subscribe = forms.BooleanField( + label='Automatically subscribe to every forum topic I create or reply to', required=False) class Meta: model = UserProfile fields = ('location', 'birthday', 'occupation', 'interests', 'profile_text', 'hide_email', 'signature', 'time_zone', - 'use_24_time', ) + 'use_24_time', 'auto_favorite', 'auto_subscribe') class Media: css = {