Mercurial > public > sg101
view gpp/membermap/forms.py @ 124:9c18250972d5
Refactored the markdown/smiley logic. Created classes for Markdown and Smilify. No longer call render_to_string() in models.py for various models.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 14 Nov 2009 04:32:32 +0000 |
parents | b6263ac72052 |
children | c515b7401078 |
line wrap: on
line source
""" Forms for the member map application. """ from django import forms from django.conf import settings from membermap.models import MapEntry class MapEntryForm(forms.ModelForm): class Meta: model = MapEntry fields = ('location', 'message') class Media: css = { 'all': settings.GPP_THIRD_PARTY_CSS['markitup'] } js = settings.GPP_THIRD_PARTY_JS['markitup'] # vim: ts=4 sw=4