Renamed calendar to widget_calendar to avoid error

parent b338c987
......@@ -15,11 +15,17 @@ def index(request):
body = ""
for event in Event.objects.all():
location = event.location
body += "<p style='border: 2px solid gray;\
border-radius:5px;\
padding:20px 30px;'>\
{} <br>\
</p>".format(event)
<b> Date and Time: "+event.target_datetime+" </b> <br>\
Activity: "+event.activity+" <br>\
Estimated Hours: "+event.estimated_hours+" <br>\
Course/Section: "+event.course+" <br>\
Mode: "+location.mode+" <br>\
Venue: "+location.venue+" <br>\
</p>"
return_string = "<html>\
<body style = 'font-family:helvetica;\
......
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