summaryrefslogtreecommitdiff
path: root/docs/releases/1.1.txt
diff options
context:
space:
mode:
Diffstat (limited to 'docs/releases/1.1.txt')
-rw-r--r--docs/releases/1.1.txt47
1 files changed, 23 insertions, 24 deletions
diff --git a/docs/releases/1.1.txt b/docs/releases/1.1.txt
index edb7cf1af2..39cb0ab2b0 100644
--- a/docs/releases/1.1.txt
+++ b/docs/releases/1.1.txt
@@ -1,5 +1,3 @@
-.. _releases-1.1:
-
========================
Django 1.1 release notes
========================
@@ -19,7 +17,7 @@ fixes, and an easy upgrade path from Django 1.0.
Backwards-incompatible changes in 1.1
=====================================
-Django has a policy of :ref:`API stability <misc-api-stability>`. This means
+Django has a policy of :doc:`API stability </misc/api-stability>`. This means
that, in general, code you develop against Django 1.0 should continue to work
against 1.1 unchanged. However, we do sometimes make backwards-incompatible
changes if they're necessary to resolve bugs, and there are a handful of such
@@ -176,7 +174,7 @@ be upgraded to a ``DeprecationWarning``, which will be displayed loudly. Django
1.3 will remove ``AdminSite.root()`` entirely.
For more details on our deprecation policies and strategy, see
-:ref:`internals-release-process`.
+:doc:`/internals/release-process`.
What's new in Django 1.1
========================
@@ -203,8 +201,8 @@ results of the aggregate directly, or else annotate the objects in a
:class:`QuerySet` with the results of the aggregate query.
This feature is available as new :meth:`QuerySet.aggregate()`` and
-:meth:`QuerySet.annotate()`` methods, and is covered in detail in :ref:`the ORM
-aggregation documentation <topics-db-aggregation>`.
+:meth:`QuerySet.annotate()`` methods, and is covered in detail in :doc:`the ORM
+aggregation documentation </topics/db/aggregation>`.
Query expressions
~~~~~~~~~~~~~~~~~
@@ -258,21 +256,22 @@ processing to convert them to Python objects. If you know you don't need those
particular fields, you can now tell Django not to retrieve them from the
database.
-You'll do this with the :ref:`new queryset methods <queryset-defer>`
-``defer()`` and ``only()``.
+You'll do this with the new queryset methods
+:meth:`~django.db.models.QuerySet.defer` and
+:meth:`~django.db.models.QuerySet.only`.
Testing improvements
--------------------
-A few notable improvements have been made to the :ref:`testing framework
-<topics-testing>`.
+A few notable improvements have been made to the :doc:`testing framework
+</topics/testing>`.
Test performance improvements
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.. currentmodule:: django.test
-Tests written using Django's :ref:`testing framework <topics-testing>` now run
+Tests written using Django's :doc:`testing framework </topics/testing>` now run
dramatically faster (as much as 10 times faster in many cases).
This was accomplished through the introduction of transaction-based tests: when
@@ -315,7 +314,7 @@ up as form widgets on the list pages, and can be edited and saved in bulk.
Admin "actions"
~~~~~~~~~~~~~~~
-You can now define :ref:`admin actions <ref-contrib-admin-actions>` that can
+You can now define :doc:`admin actions </ref/contrib/admin/actions>` that can
perform some action to a group of models in bulk. Users will be able to select
objects on the change list page and then apply these bulk actions to all
selected objects.
@@ -326,8 +325,8 @@ one fell swoop.
Conditional view processing
---------------------------
-Django now has much better support for :ref:`conditional view processing
-<topics-conditional-processing>` using the standard ``ETag`` and
+Django now has much better support for :doc:`conditional view processing
+</topics/conditional-view-processing>` using the standard ``ETag`` and
``Last-Modified`` HTTP headers. This means you can now easily short-circuit
view processing by testing less-expensive conditions. For many views this can
lead to a serious improvement in speed and reduction in bandwidth.
@@ -375,7 +374,7 @@ Other improvements
Other new features and changes introduced since Django 1.0 include:
-* The :ref:`CSRF protection middleware <ref-contrib-csrf>` has been split into
+* The :doc:`CSRF protection middleware </ref/contrib/csrf>` has been split into
two classes -- ``CsrfViewMiddleware`` checks incoming requests, and
``CsrfResponseMiddleware`` processes outgoing responses. The combined
``CsrfMiddleware`` class (which does both) remains for
@@ -392,13 +391,13 @@ Other new features and changes introduced since Django 1.0 include:
* The ``include()`` function in Django URLconf modules can now accept sequences
of URL patterns (generated by ``patterns()``) in addition to module names.
-* Instances of Django forms (see :ref:`the forms overview <topics-forms-index>`)
+* Instances of Django forms (see :doc:`the forms overview </topics/forms/index>`)
now have two additional methods, ``hidden_fields()`` and ``visible_fields()``,
which return the list of hidden -- i.e., ``<input type="hidden">`` -- and
visible fields on the form, respectively.
-* The ``redirect_to`` generic view (see :ref:`the generic views documentation
- <ref-generic-views>`) now accepts an additional keyword argument
+* The ``redirect_to`` generic view (see :doc:`the generic views documentation
+ </ref/generic-views>`) now accepts an additional keyword argument
``permanent``. If ``permanent`` is ``True``, the view will emit an HTTP
permanent redirect (status code 301). If ``False``, the view will emit an HTTP
temporary redirect (status code 302).
@@ -411,8 +410,8 @@ Other new features and changes introduced since Django 1.0 include:
* The ``{% for %}`` tag in Django's template language now accepts an optional
``{% empty %}`` clause, to be displayed when ``{% for %}`` is asked to loop
- over an empty sequence. See :ref:`the list of built-in template tags
- <ref-templates-builtins>` for examples of this.
+ over an empty sequence. See :doc:`the list of built-in template tags
+ </ref/templates/builtins>` for examples of this.
* The :djadmin:`dumpdata` management command now accepts individual
model names as arguments, allowing you to export the data just from
@@ -421,14 +420,14 @@ Other new features and changes introduced since Django 1.0 include:
* There's a new :tfilter:`safeseq` template filter which works just like
:tfilter:`safe` for lists, marking each item in the list as safe.
-* :ref:`Cache backends <topics-cache>` now support ``incr()`` and
+* :doc:`Cache backends </topics/cache>` now support ``incr()`` and
``decr()`` commands to increment and decrement the value of a cache key.
On cache backends that support atomic increment/decrement -- most
notably, the memcached backend -- these operations will be atomic, and
quite fast.
-* Django now can :ref:`easily delegate authentication to the web server
- <howto-auth-remote-user>` via a new authentication backend that supports
+* Django now can :doc:`easily delegate authentication to the web server
+ </howto/auth-remote-user>` via a new authentication backend that supports
the standard ``REMOTE_USER`` environment variable used for this purpose.
* There's a new :func:`django.shortcuts.redirect` function that makes it
@@ -455,7 +454,7 @@ join the discussions!
Django's online documentation also includes pointers on how to contribute to
Django:
- * :ref:`How to contribute to Django <internals-contributing>`
+ * :doc:`How to contribute to Django </internals/contributing>`
Contributions on any level -- developing code, writing documentation or simply
triaging tickets and helping to test proposed bugfixes -- are always welcome and