comparison messages/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 999a71b81111
children 82f1f6f905eb
comparison
equal deleted inserted replaced
1016:fd70e9d547ed 1017:21c592cac71c
106 # Notify recipient 106 # Notify recipient
107 receiver_opts = Options.objects.for_user(receiver) 107 receiver_opts = Options.objects.for_user(receiver)
108 if receiver_opts.notify_email: 108 if receiver_opts.notify_email:
109 notify_receiver(new_msg) 109 notify_receiver(new_msg)
110 110
111 class Media:
112 css = {
113 'all': (settings.GPP_THIRD_PARTY_CSS['markitup'] +
114 settings.GPP_THIRD_PARTY_CSS['jquery-ui'])
115 }
116 js = (settings.GPP_THIRD_PARTY_JS['markitup'] +
117 settings.GPP_THIRD_PARTY_JS['jquery-ui'])
118
119 111
120 class OptionsForm(forms.ModelForm): 112 class OptionsForm(forms.ModelForm):
121 class Meta: 113 class Meta:
122 model = Options 114 model = Options
123 fields = ['attach_signature', 'notify_email'] 115 fields = ['attach_signature', 'notify_email']