diff core/views.py @ 1032:e932f2ecd4a7

Django 1.8 warnings / tech debt cleanup.
author Brian Neal <bgneal@gmail.com>
date Sat, 26 Dec 2015 15:10:55 -0600
parents 89b240fe9297
children a469445d8be3
line wrap: on
line diff
--- a/core/views.py	Sun Dec 20 22:18:59 2015 -0600
+++ b/core/views.py	Sat Dec 26 15:10:55 2015 -0600
@@ -7,7 +7,7 @@
 
 from django.contrib.auth.models import User
 from django.http import HttpResponse
-from django.shortcuts import render_to_response
+from django.shortcuts import render
 from django.contrib.auth.decorators import login_required
 from django.views.decorators.http import require_GET
 from django.views.generic import TemplateView
@@ -21,7 +21,7 @@
     to be called via AJAX.
 
     """
-    return render_to_response('core/markdown_help.html')
+    return render(request, 'core/markdown_help.html')
 
 
 def ajax_users(request):