~ubuntu-branches/debian/sid/python-django/sid

« back to all changes in this revision

Viewing changes to docs/releases/1.3.txt

  • Committer: Package Import Robot
  • Author(s): Raphaël Hertzog
  • Date: 2014-09-17 14:15:11 UTC
  • mfrom: (1.3.17) (6.2.18 experimental)
  • Revision ID: package-import@ubuntu.com-20140917141511-icneokthe9ww5sk4
Tags: 1.7-2
* Release to unstable.
* Add a migrate-south sample script to help users apply their South
  migrations. Thanks to Brian May.

Show diffs side-by-side

added added

removed removed

Lines of Context:
295
295
  :class:`~django.contrib.sites.models.Site` object in
296
296
  :doc:`the sites framework </ref/contrib/sites>`.
297
297
 
298
 
* A :class:`~django.test.client.RequestFactory` for mocking requests
 
298
* A :class:`~django.test.RequestFactory` for mocking requests
299
299
  in tests.
300
300
 
301
301
* A new test assertion --
324
324
  to :meth:`~django.shortcuts.render_to_response()` providing a
325
325
  :class:`~django.template.RequestContext` by default.
326
326
 
327
 
* Support for combining :ref:`F() expressions <query-expressions>`
 
327
* Support for combining :class:`F expressions <django.db.models.F>`
328
328
  with timedelta values when retrieving or updating database values.
329
329
 
330
330
.. _HTTPOnly: https://www.owasp.org/index.php/HTTPOnly
715
715
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
716
716
 
717
717
Django's :ref:`test client <test-client>` returns
718
 
:class:`~django.test.client.Response` objects annotated with extra testing
 
718
:class:`~django.test.Response` objects annotated with extra testing
719
719
information. In Django versions prior to 1.3, this included a ``template``
720
720
attribute containing information about templates rendered in generating the
721
721
response: either None, a single :class:`~django.template.Template` object, or a
724
724
to work with.
725
725
 
726
726
In Django 1.3 the ``template`` attribute is deprecated in favor of a new
727
 
:attr:`~django.test.client.Response.templates` attribute, which is always a
 
727
:attr:`~django.test.Response.templates` attribute, which is always a
728
728
list, even if it has only a single element or no elements.
729
729
 
730
730
``DjangoTestRunner``