Commit cc9cd2d2 authored by Jan Ericsson Ong Ang's avatar Jan Ericsson Ong Ang

Edited date and time format for templates

parent f8f193ff
......@@ -34,6 +34,7 @@ class EventEditView(UpdateView):
model = Event, Location
form_class = AddEventForm
template_name = 'event-edit.html'
formatDate = Event.target_datetime.strftime("%d-%b-%y")
# This will get the object, and this object is used to tell Django
# that we are updating.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment