diff downloads/views.py @ 679:89b240fe9297

For Django 1.5.2: import json; django.utils.simplejson is deprecated.
author Brian Neal <bgneal@gmail.com>
date Thu, 15 Aug 2013 20:14:33 -0500
parents ee87ea74d46b
children 41d0389fc85a
line wrap: on
line diff
--- a/downloads/views.py	Wed Aug 14 14:53:21 2013 -0500
+++ b/downloads/views.py	Thu Aug 15 20:14:33 2013 -0500
@@ -1,7 +1,7 @@
 """
 Views for the downloads application.
 """
-import random
+import json
 
 from django.shortcuts import render_to_response, get_object_or_404
 from django.template import RequestContext
@@ -14,9 +14,7 @@
 from django.http import HttpResponseNotFound
 from django.core.paginator import InvalidPage
 from django.core.urlresolvers import reverse
-from django.db.models import Q
 from django.views.decorators.http import require_POST
-import django.utils.simplejson as json
 
 from core.paginator import DiggPaginator
 from core.functions import email_admins