comparison gpp/forums/forms.py @ 112:d1b0b86441c0

Forums: added a sync() function on the forum model. Created javascript for the moderate forum function to drive the master topic select checkbox.
author Brian Neal <bgneal@gmail.com>
date Wed, 30 Sep 2009 00:42:13 +0000
parents e5faf9f0c11a
children 0ce0104c7df3
comparison
equal deleted inserted replaced
111:e5faf9f0c11a 112:d1b0b86441c0
122 self.fields['forums'].queryset = \ 122 self.fields['forums'].queryset = \
123 Forum.objects.forums_for_user(user).order_by('name') 123 Forum.objects.forums_for_user(user).order_by('name')
124 if hide_label: 124 if hide_label:
125 self.fields['forums'].label = '' 125 self.fields['forums'].label = ''
126 self.fields['forums'].required = required 126 self.fields['forums'].required = required
127 print '#############', required
128 127