Mercurial > public > sg101
comparison gpp/membermap/forms.py @ 312:88b2b9cb8c1f
Fixing #142; cut over to the django.contrib.staticfiles app.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 27 Jan 2011 02:56:10 +0000 |
parents | c515b7401078 |
children |
comparison
equal
deleted
inserted
replaced
311:b1c39788e511 | 312:88b2b9cb8c1f |
---|---|
6 | 6 |
7 from membermap.models import MapEntry | 7 from membermap.models import MapEntry |
8 | 8 |
9 | 9 |
10 class MapEntryForm(forms.ModelForm): | 10 class MapEntryForm(forms.ModelForm): |
11 location = forms.CharField(required=True, | 11 location = forms.CharField(required=True, |
12 widget=forms.TextInput(attrs={'size': 64, 'maxlength': 255})) | 12 widget=forms.TextInput(attrs={'size': 64, 'maxlength': 255})) |
13 message = forms.CharField(required=False, | 13 message = forms.CharField(required=False, |
14 widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'})) | 14 widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'})) |
15 | 15 |
16 class Meta: | 16 class Meta: |
17 model = MapEntry | 17 model = MapEntry |
18 fields = ('location', 'message') | 18 fields = ('location', 'message') |