Mercurial > public > sg101
view membermap/forms.py @ 1020:a052798c146c
Unbreak the flag icon template tag.
This got broken when I did the ManifestStaticFilesStorage changes.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 08 Dec 2015 17:32:31 -0600 |
parents | 21c592cac71c |
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')