comparison gpp/comments/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 b8474ffe76d9
children bbbc357ac5f3
comparison
equal deleted inserted replaced
311:b1c39788e511 312:88b2b9cb8c1f
10 10
11 COMMENT_MAX_LENGTH = getattr(settings, 'COMMENT_MAX_LENGTH', 3000) 11 COMMENT_MAX_LENGTH = getattr(settings, 'COMMENT_MAX_LENGTH', 3000)
12 12
13 class CommentForm(forms.Form): 13 class CommentForm(forms.Form):
14 comment = forms.CharField(label='', 14 comment = forms.CharField(label='',
15 min_length=1, 15 min_length=1,
16 max_length=COMMENT_MAX_LENGTH, 16 max_length=COMMENT_MAX_LENGTH,
17 widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'})) 17 widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'}))
18 content_type = forms.CharField(widget=forms.HiddenInput) 18 content_type = forms.CharField(widget=forms.HiddenInput)
19 object_pk = forms.CharField(widget=forms.HiddenInput) 19 object_pk = forms.CharField(widget=forms.HiddenInput)
20 20
67 class Media: 67 class Media:
68 css = { 68 css = {
69 'all': (settings.GPP_THIRD_PARTY_CSS['markitup'] + 69 'all': (settings.GPP_THIRD_PARTY_CSS['markitup'] +
70 settings.GPP_THIRD_PARTY_CSS['jquery-ui']), 70 settings.GPP_THIRD_PARTY_CSS['jquery-ui']),
71 } 71 }
72 js = (settings.GPP_THIRD_PARTY_JS['markitup'] + 72 js = (settings.GPP_THIRD_PARTY_JS['markitup'] +
73 settings.GPP_THIRD_PARTY_JS['jquery-ui'] + 73 settings.GPP_THIRD_PARTY_JS['jquery-ui'] +
74 ('js/comments.js', )) 74 ('js/comments.js', ))