Mercurial > public > sg101
diff gpp/downloads/forms.py @ 312:88b2b9cb8c1f
Fixing #142; cut over to the django.contrib.staticfiles app.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 27 Jan 2011 02:56:10 +0000 |
parents | 27bee3ac85e6 |
children |
line wrap: on
line diff
--- a/gpp/downloads/forms.py Thu Jan 20 04:40:14 2011 +0000 +++ b/gpp/downloads/forms.py Thu Jan 27 02:56:10 2011 +0000 @@ -12,9 +12,9 @@ class AddDownloadForm(forms.ModelForm): """Form to allow adding downloads.""" - title = forms.CharField(required=True, + title = forms.CharField(required=True, widget=forms.TextInput(attrs={'size': 64, 'maxlength': 64})) - description = forms.CharField(required=False, + description = forms.CharField(required=False, widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'})) def clean_file(self): @@ -28,7 +28,7 @@ class Meta: model = PendingDownload fields = ('title', 'category', 'description', 'file') - + class Media: css = { 'all': (settings.GPP_THIRD_PARTY_CSS['markitup'] +