comparison forums/views/attachments.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 7e0c3cbd3cda
comparison
equal deleted inserted replaced
678:38a198ea8c61 679:89b240fe9297
1 """ 1 """
2 This module contains views for working with post attachments. 2 This module contains views for working with post attachments.
3
3 """ 4 """
5 import json
6
4 from django.http import HttpResponse 7 from django.http import HttpResponse
5 from django.http import HttpResponseForbidden 8 from django.http import HttpResponseForbidden
6 from django.http import HttpResponseBadRequest 9 from django.http import HttpResponseBadRequest
7 from django.http import HttpResponseNotFound 10 from django.http import HttpResponseNotFound
8 import django.utils.simplejson as json
9 11
10 from forums.models import Post 12 from forums.models import Post
11 13
12 14
13 def fetch_attachments(request): 15 def fetch_attachments(request):