Mercurial > public > sg101
view 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 |
line wrap: on
line source
""" Forms for the member map application. """ from django import forms from membermap.models import MapEntry class MapEntryForm(forms.ModelForm): location = forms.CharField(required=True, widget=forms.TextInput(attrs={'size': 64, 'maxlength': 255})) message = forms.CharField(required=False, widget=forms.Textarea(attrs={'class': 'markItUp smileyTarget'})) class Meta: model = MapEntry fields = ('location', 'message')