1. Jesper Nøhr
  2. django-piston

Pull requests

#21 Merged
Repository
Deleted repository
Branch
django1.4 (3a0d021dd042)
Repository
django-piston
Branch
default

Use _base_content_is_iter or _is_string on HttpResponse depending on Django version.

Author
  1. Andi Albrecht
Reviewers
Description

In Django 1.4 HttpResponse._is_string changed to HttpResponse._base_content_is_iter (see https://code.djangoproject.com/changeset/16829). This change gets/sets the right attribute by looking at the Django version.

Unfortunately I was not able to run the tests. But I tested it locally with one of my APIs both on Django 1.3 and 1.4.

  • Learn about pull requests

Comments (0)