Mercurial > public > sg101
diff bio/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 | 164a39d985ef |
children | 6bf83070b19f |
line wrap: on
line diff
--- a/bio/forms.py Sun Dec 06 13:22:09 2015 -0600 +++ b/bio/forms.py Sun Dec 06 14:48:30 2015 -0600 @@ -51,15 +51,6 @@ 'profile_text', 'hide_email', 'signature', 'time_zone', 'use_24_time', 'auto_favorite', 'auto_subscribe') - 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/bio.js', 'js/timezone.js']) - def clean_time_zone(self): """Ensure the timezone is valid and will work with pytz. @@ -145,12 +136,6 @@ """ username = forms.CharField(max_length=30, widget=AutoCompleteUserInput()) - class Media: - css = { - 'all': settings.GPP_THIRD_PARTY_CSS['jquery-ui'] - } - js = settings.GPP_THIRD_PARTY_JS['jquery-ui'] - def clean_username(self): username = self.cleaned_data['username'].strip() try: