comparison gpp/bio/forms.py @ 484:bbbc357ac5f3

For #233; first commit for adding social media sharing buttons to news stories.
author Brian Neal <bgneal@gmail.com>
date Tue, 18 Oct 2011 00:04:37 +0000
parents 452835f4429f
children
comparison
equal deleted inserted replaced
483:3ac558402014 484:bbbc357ac5f3
46 'profile_text', 'hide_email', 'signature', 'time_zone', 46 'profile_text', 'hide_email', 'signature', 'time_zone',
47 'use_24_time', 'auto_favorite', 'auto_subscribe') 47 'use_24_time', 'auto_favorite', 'auto_subscribe')
48 48
49 class Media: 49 class Media:
50 css = { 50 css = {
51 'all': settings.GPP_THIRD_PARTY_CSS['markitup'] + \ 51 'all': (settings.GPP_THIRD_PARTY_CSS['markitup'] +
52 settings.GPP_THIRD_PARTY_CSS['jquery-ui'] 52 settings.GPP_THIRD_PARTY_CSS['jquery-ui'])
53 } 53 }
54 js = settings.GPP_THIRD_PARTY_JS['markitup'] + \ 54 js = (settings.GPP_THIRD_PARTY_JS['markitup'] +
55 settings.GPP_THIRD_PARTY_JS['jquery-ui'] + \ 55 settings.GPP_THIRD_PARTY_JS['jquery-ui'] +
56 ('js/bio.js', 'js/timezone.js') 56 ['js/bio.js', 'js/timezone.js'])
57 57
58 58
59 class UploadAvatarForm(forms.Form): 59 class UploadAvatarForm(forms.Form):
60 """Form used to change a user's avatar""" 60 """Form used to change a user's avatar"""
61 avatar_file = forms.ImageField(required=False) 61 avatar_file = forms.ImageField(required=False)