changes from desktop computer
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from django.shortcuts import render, redirect
|
||||
from django.http import HttpResponse
|
||||
from django.forms.models import ModelForm
|
||||
from django.forms import TextInput
|
||||
from django.forms import TextInput, TimeInput
|
||||
|
||||
from .models import Event, EventParticipation
|
||||
|
||||
@@ -103,7 +103,7 @@ class EventForm(ModelForm):
|
||||
self.helper = FormHelper()
|
||||
self.helper.form_class = 'form-horizontal'
|
||||
self.helper.add_input(Submit('submit', 'Speichern'))
|
||||
return super(EventForm, self).__init__(*args, **kwargs)
|
||||
super(EventForm, self).__init__(*args, **kwargs)
|
||||
|
||||
class Meta:
|
||||
model = Event
|
||||
@@ -111,6 +111,7 @@ class EventForm(ModelForm):
|
||||
'desc', ]
|
||||
|
||||
widgets = {
|
||||
'time': TimeInput(format='%H:%M'),
|
||||
'location': TextInput(),
|
||||
'map_location': LocationWidget(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user