Mercurial > public > sg101
diff news/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 | fa52bfb28217 |
children |
line wrap: on
line diff
--- a/news/forms.py Sun Dec 06 13:22:09 2015 -0600 +++ b/news/forms.py Sun Dec 06 14:48:30 2015 -0600 @@ -3,7 +3,6 @@ """ from django import forms -from django.conf import settings from core.html import ImageCheckError from core.html import image_check @@ -28,17 +27,6 @@ model = PendingStory fields = ['title', 'category', 'short_markup'] - class Media: - css = { - 'all': (settings.GPP_THIRD_PARTY_CSS['markitup'] + - settings.GPP_THIRD_PARTY_CSS['jquery-ui']) - } - js = ( - settings.GPP_THIRD_PARTY_JS['markitup'] + - settings.GPP_THIRD_PARTY_JS['jquery-ui'] + - ['js/jquery.form.min.js'] - ) - def clean_short_markup(self): md = self.cleaned_data['short_markup'] self.html = None