Map on mainpage
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
{% block content %}
|
||||
|
||||
{{ form.media }}
|
||||
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="span12">
|
||||
|
||||
@@ -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(),
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user