Mercurial > public > sg101
annotate gpp/membermap/forms.py @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | b6263ac72052 |
rev | line source |
---|---|
gremmie@1 | 1 """ |
gremmie@1 | 2 Forms for the member map application. |
gremmie@1 | 3 """ |
gremmie@1 | 4 from django import forms |
gremmie@1 | 5 from membermap.models import MapEntry |
gremmie@1 | 6 |
gremmie@1 | 7 |
gremmie@1 | 8 class MapEntryForm(forms.ModelForm): |
gremmie@1 | 9 |
gremmie@1 | 10 class Meta: |
gremmie@1 | 11 model = MapEntry |
gremmie@1 | 12 fields = ('location', 'message') |
gremmie@1 | 13 |
gremmie@1 | 14 class Media: |
gremmie@1 | 15 css = { |
gremmie@1 | 16 'all': ('js/markitup/skins/markitup/style.css', |
gremmie@1 | 17 'js/markitup/sets/markdown/style.css') |
gremmie@1 | 18 } |
gremmie@1 | 19 js = ( |
gremmie@1 | 20 'js/markitup/jquery.markitup.pack.js', |
gremmie@1 | 21 'js/markitup/sets/markdown/set.js', |
gremmie@1 | 22 ) |
gremmie@1 | 23 |
gremmie@1 | 24 # vim: ts=4 sw=4 |