Changeset - e9c97a9586f2
[Not reviewed]
0 2 0
Rebecca Lovewell - 11 years ago 2014-01-15 14:36:49
rebecca@caktusgroup.com
mimetype -> content_type

mimetype is deprecated and to be removed in Django 1.7.
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
symposion/proposals/actions.py
Show inline comments
...
 
@@ -23,7 +23,7 @@ def export_as_csv_action(
 
        elif exclude:
 
            excludeset = set(exclude)
 
            field_names = field_names - excludeset
 
        response = HttpResponse(mimetype="text/csv")
 
        response = HttpResponse(content_type="text/csv")
 
        response["Content-Disposition"] = "attachment; filename=%s.csv" % unicode(opts).replace(".", "_")
 
        writer = csv.writer(response)
 
        if header:
symposion/schedule/views.py
Show inline comments
...
 
@@ -78,7 +78,7 @@ def schedule_list_csv(request, slug=None):
 
    presentations = Presentation.objects.filter(section=schedule.section)
 
    presentations = presentations.exclude(cancelled=True).order_by("id")
 

	
 
    response = HttpResponse(mimetype="text/csv")
 
    response = HttpResponse(content_type="text/csv")
 
    if slug:
 
        file_slug = slug
 
    else:
0 comments (0 inline, 0 general)