Commit 7ee7599a authored by Aymeric Augustin's avatar Aymeric Augustin
Browse files

Removed versionadded/changed annotations dating back to 1.4.

parent ef017a5f
Loading
Loading
Loading
Loading
+6 −18
Original line number Diff line number Diff line
@@ -333,8 +333,6 @@ Template filter code falls into one of two situations:
Filters and time zones
~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 1.4

If you write a custom filter that operates on :class:`~datetime.datetime`
objects, you'll usually register it with the ``expects_localtime`` flag set to
``True``:
@@ -764,8 +762,6 @@ Or, using decorator syntax:
For more information on how the ``takes_context`` option works, see the section
on :ref:`inclusion tags<howto-custom-template-tags-inclusion-tags>`.

.. versionadded:: 1.4

If you need to rename your tag, you can provide a custom name for it:

.. code-block:: python
@@ -776,8 +772,6 @@ If you need to rename your tag, you can provide a custom name for it:
    def some_function(value):
        return value - 2

.. versionadded:: 1.4

``simple_tag`` functions may accept any number of positional or keyword
arguments. For example:

@@ -865,8 +859,6 @@ template loader, we'd register the tag like this:
    # Here, register is a django.template.Library instance, as before
    register.inclusion_tag('results.html')(show_results)

.. versionchanged:: 1.4

Alternatively it is possible to register the inclusion tag using a
:class:`django.template.Template` instance:

@@ -932,8 +924,6 @@ The ``takes_context`` parameter defaults to ``False``. When it's set to
``True``, the tag is passed the context object, as in this example. That's the
only difference between this case and the previous ``inclusion_tag`` example.

.. versionadded:: 1.4

``inclusion_tag`` functions may accept any number of positional or keyword
arguments. For example:

@@ -1046,8 +1036,6 @@ context-updating template tag, you might want to consider using an
Assignment tags
~~~~~~~~~~~~~~~

.. versionadded:: 1.4

To ease the creation of tags setting a variable in the context, Django provides
a helper function, ``assignment_tag``. This function works the same way as
:ref:`simple_tag<howto-custom-template-tags-simple-tags>`, except that it
+0 −2
Original line number Diff line number Diff line
@@ -28,8 +28,6 @@ callable object which the webserver uses to communicate with your code. This is
commonly specified as an object named ``application`` in a Python module
accessible to the server.

.. versionchanged:: 1.4

The :djadmin:`startproject` command creates a :file:`projectname/wsgi.py` that
contains such an application callable.

+5 −11
Original line number Diff line number Diff line
@@ -106,8 +106,6 @@ The best way to disable this behavior is to set
Filtering error reports
-----------------------

.. versionadded:: 1.4

Filtering sensitive information
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@@ -185,15 +183,11 @@ production environment (that is, where :setting:`DEBUG` is set to ``False``):
        def my_view(request):
            ...

.. note::

    .. versionchanged:: 1.4

    Since version 1.4, all POST parameters are systematically filtered out of
    error reports for certain :mod:`django.contrib.auth.views` views (
    ``login``, ``password_reset_confirm``, ``password_change``, and
    ``add_view`` and ``user_change_password`` in the ``auth`` admin) to prevent
    the leaking of sensitive information such as user passwords.
    All POST parameters are systematically filtered out of error reports for
    certain :mod:`django.contrib.auth.views` views (``login``,
    ``password_reset_confirm``, ``password_change``, and ``add_view`` and
    ``user_change_password`` in the ``auth`` admin) to prevent the leaking of
    sensitive information such as user passwords.

.. _custom-error-reports:

+0 −5
Original line number Diff line number Diff line
@@ -40,11 +40,6 @@ FormMixin
        Retrieve initial data for the form. By default, returns a copy of
        :attr:`~django.views.generic.edit.FormMixin.initial`.

        .. versionchanged:: 1.4
            In Django 1.3, this method was returning the
            :attr:`~django.views.generic.edit.FormMixin.initial` class variable
            itself.

    .. method:: get_form_class()

        Retrieve the form class to instantiate. By default
+0 −4
Original line number Diff line number Diff line
@@ -31,15 +31,11 @@ SingleObjectMixin

    .. attribute:: slug_url_kwarg

        .. versionadded:: 1.4

        The name of the URLConf keyword argument that contains the slug. By
        default, ``slug_url_kwarg`` is ``'slug'``.

    .. attribute:: pk_url_kwarg

        .. versionadded:: 1.4

        The name of the URLConf keyword argument that contains the primary key.
        By default, ``pk_url_kwarg`` is ``'pk'``.

Loading