Commit 8daa597e authored by Rau Layug's avatar Rau Layug

Reformatted calendarapp views.py

parent 39952c28
......@@ -15,10 +15,17 @@ def index(request):
target_date = event.target_date
activity = event.activity
estimated_hours = event.estimated_hours
course_section = "{} {} {}".format(course.course_code, course.course_title, course.section)
course_section = "{} {} {}".format(course.course_code,
course.course_title,
course.section)
mode = location.get_mode_display()
venue = location.venue
response += "Target Date: {}<br>Activity: {}<br>Estimated Hours: {}<br>Course/Section: {}<br>Mode: {}<br>Venue: {}<br><br>".format(target_date, activity, estimated_hours, course_section, mode,
venue)
response_string = "Target Date: {}<br>Activity: {}<br>Estimated " \
"Hours: {}<br>Course/Section: {}<br>Mode: {" \
"}<br>Venue: {}<br><br>"
response += response_string.format(target_date, activity,
estimated_hours, course_section,
mode, venue)
return HttpResponse(response)
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