Mercurial > public > sg101
comparison comments/forms.py @ 1017:21c592cac71c
ManifestStaticFilesStorage: stop using form Media.
It's okay for the admin, but not for user facing stuff.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 06 Dec 2015 14:48:30 -0600 |
parents | 4619290d171d |
children |
comparison
equal
deleted
inserted
replaced
1016:fd70e9d547ed | 1017:21c592cac71c |
---|---|
77 image_check(self.comment_html) | 77 image_check(self.comment_html) |
78 except ImageCheckError as ex: | 78 except ImageCheckError as ex: |
79 raise forms.ValidationError(str(ex)) | 79 raise forms.ValidationError(str(ex)) |
80 | 80 |
81 return comment | 81 return comment |
82 | |
83 class Media: | |
84 css = { | |
85 'all': (settings.GPP_THIRD_PARTY_CSS['markitup'] + | |
86 settings.GPP_THIRD_PARTY_CSS['jquery-ui']), | |
87 } | |
88 js = (settings.GPP_THIRD_PARTY_JS['markitup'] + | |
89 settings.GPP_THIRD_PARTY_JS['jquery-ui'] + | |
90 ['js/comments.js']) |