Fixed the case where the urlpattern regexp match gives us an ext which is None.

- Legacy-Id: 6502
This commit is contained in:
Henrik Levkowetz 2013-10-27 23:04:02 +00:00
parent 17f2b80fa4
commit 93826ae094

View file

@ -433,6 +433,8 @@ def iphone_agenda(request, num, name):
context_instance=RequestContext(request))
def agenda(request, num=None, name=None, ext=".html"):
if ext is None:
ext = ".html"
mimetype = {".html":"text/html", ".txt": "text/plain", ".ics":"text/calendar", ".csv":"text/csv"}
meeting = get_meeting(num)
schedule = get_schedule(meeting, name)