Map on mainpage

This commit is contained in:
Martin Bauer
2013-09-22 17:53:18 +02:00
parent 230f1e6a36
commit 3fa4bdaafd
6 changed files with 132 additions and 4 deletions

View File

@@ -16,6 +16,8 @@
{% block content %}
{{ form.media }}
<div class="container">
<div class="row">
<div class="span12">

View File

@@ -111,6 +111,7 @@ def deleteEvent( request, pk ):
from django.views.generic.edit import UpdateView, CreateView
from location_field.widgets import LocationWidget
class EventForm( ModelForm ):
def __init__(self, *args, **kwargs):
@@ -121,10 +122,11 @@ class EventForm( ModelForm ):
class Meta:
model = Event
fields= ['title', 'type', 'date','time', 'meeting_time', 'location', 'desc', ]
fields= [ 'type', 'title', 'date','time', 'meeting_time', 'location', 'map_location', 'desc', ]
widgets = {
'location': TextInput(),
'location' : TextInput(),
'map_location' : LocationWidget(),
}