Mercurial > public > sg101
annotate gpp/membermap/forms.py @ 5:63696b279e35
Display news links and send to friend on the summary page. Use icons.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 11 Apr 2009 19:45:17 +0000 |
parents | dbd703f7d63a |
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 |