Mercurial > public > sg101
comparison membermap/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 | ee87ea74d46b |
children | 6164cc091649 |
comparison
equal
deleted
inserted
replaced
1016:fd70e9d547ed | 1017:21c592cac71c |
---|---|
1 """ | 1 """ |
2 Forms for the member map application. | 2 Forms for the member map application. |
3 """ | 3 """ |
4 from django import forms | 4 from django import forms |
5 from django.conf import settings | |
6 | 5 |
7 from membermap.models import MapEntry | 6 from membermap.models import MapEntry |
8 | 7 |
9 | 8 |
10 class MapEntryForm(forms.ModelForm): | 9 class MapEntryForm(forms.ModelForm): |
14 widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'})) | 13 widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'})) |
15 | 14 |
16 class Meta: | 15 class Meta: |
17 model = MapEntry | 16 model = MapEntry |
18 fields = ('location', 'message') | 17 fields = ('location', 'message') |
19 | |
20 class Media: | |
21 css = { | |
22 'all': (settings.GPP_THIRD_PARTY_CSS['markitup'] + | |
23 settings.GPP_THIRD_PARTY_CSS['jquery-ui']) | |
24 } | |
25 js = (settings.GPP_THIRD_PARTY_JS['markitup'] + | |
26 settings.GPP_THIRD_PARTY_JS['jquery-ui']) | |
27 |