Skip to content
Snippets Groups Projects

information about location in daily planning

Merged Piotr Gawron requested to merge 154-daily-planning into master
2 files
+ 9
3
Compare changes
  • Side-by-side
  • Inline
Files
2
@@ -191,7 +191,10 @@ def events(request, date):
@@ -191,7 +191,10 @@ def events(request, date):
'name': unicode(appointment_subject),
'name': unicode(appointment_subject),
'id': appointment_subject.id,
'id': appointment_subject.id,
'color': RANDOM_COLORS[i],
'color': RANDOM_COLORS[i],
'start':appointment.datetime_when.replace(tzinfo=None).strftime("%H:%M:00"),
'start': appointment.datetime_when.replace(tzinfo=None).strftime("%H:%M:00"),
 
# this indicates only location of the first appointment
 
# (there is small chance to have two appointments in two different places at the same day)
 
'location': str(appointment.location),
'events': []
'events': []
}
}
subjects[appointment_subject.id] = subject
subjects[appointment_subject.id] = subject
Loading