Mercurial > public > sg101
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/gpp/membermap/forms.py Mon Apr 06 02:43:12 2009 +0000 @@ -0,0 +1,24 @@ +""" +Forms for the member map application. +""" +from django import forms +from membermap.models import MapEntry + + +class MapEntryForm(forms.ModelForm): + + class Meta: + model = MapEntry + fields = ('location', 'message') + + class Media: + css = { + 'all': ('js/markitup/skins/markitup/style.css', + 'js/markitup/sets/markdown/style.css') + } + js = ( + 'js/markitup/jquery.markitup.pack.js', + 'js/markitup/sets/markdown/set.js', + ) + +# vim: ts=4 sw=4