~michael.nelson/ubuntu-webcatalog/1267731-import-sca-apps-error

« back to all changes in this revision

Viewing changes to src/webcatalog/api/handlers.py

  • Committer: Tarmac
  • Author(s): Łukasz Czyżykowski
  • Date: 2013-04-16 13:40:21 UTC
  • mfrom: (178.1.21 upgrade-to-django-1.5)
  • Revision ID: tarmac-20130416134021-q45ptpwb4bn0payb
[r=michael.nelson] Upgrade to Django 1.5.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
)
42
42
from .forms import MachineCreateUpdateForm, MachineUpdatePackagesForm
43
43
 
 
44
# django-piston (outdated bit of software) expects those attributes to
 
45
# determine if the resonse content is iterator or not. Here we never
 
46
# use that possibliblit, so hardcoding the attribute.
 
47
HttpResponse._is_string = True
 
48
HttpResponseNotFound._is_string = True
 
49
HttpResponseBadRequest._is_string = True
 
50
 
44
51
 
45
52
class ServerStatusHandler(BaseHandler):
46
53
    allowed_methods = ('GET',)