1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #6527 -- Provided repeatable content access

in HttpResponses instantiated with iterators.
This commit is contained in:
Aymeric Augustin
2012-10-23 22:25:38 +02:00
parent 83041ca802
commit 495a8b8107
5 changed files with 104 additions and 38 deletions

View File

@@ -286,6 +286,10 @@ these changes.
* The ``mimetype`` argument to :class:`~django.http.HttpResponse` ``__init__``
will be removed (``content_type`` should be used instead).
* When :class:`~django.http.HttpResponse` is instantiated with an iterator,
or when :attr:`~django.http.HttpResponse.content` is set to an iterator,
that iterator will be immediately consumed.
* The ``AUTH_PROFILE_MODULE`` setting, and the ``get_profile()`` method on
the User model, will be removed.