comparison gpp/news/forms.py @ 218:6dbb8faef085

Implement #86, add a front page expiration date to news stories.
author Brian Neal <bgneal@gmail.com>
date Tue, 01 Jun 2010 05:16:40 +0000
parents ca66189c7c44
children 1246a4f1ab4f
comparison
equal deleted inserted replaced
217:237710206167 218:6dbb8faef085
15 short_text = forms.CharField(widget=forms.Textarea(attrs={'rows': 20, 'cols': 80})) 15 short_text = forms.CharField(widget=forms.Textarea(attrs={'rows': 20, 'cols': 80}))
16 long_text = forms.CharField(required=False, widget=forms.Textarea(attrs={'rows': 20, 'cols': 80})) 16 long_text = forms.CharField(required=False, widget=forms.Textarea(attrs={'rows': 20, 'cols': 80}))
17 17
18 class Meta: 18 class Meta:
19 model = PendingStory 19 model = PendingStory
20 exclude = ('submitter', 'date_submitted', 'allow_comments', 'approved', 'tags') 20 fields = ('title', 'category', 'short_text', 'long_text')
21 21
22 class Media: 22 class Media:
23 js = settings.GPP_THIRD_PARTY_JS['tiny_mce'] 23 js = settings.GPP_THIRD_PARTY_JS['tiny_mce']
24 24
25 25