Commit 78c842a3 authored by Juan Catalano's avatar Juan Catalano Committed by Claude Paroz
Browse files

Adapted uses of versionchanged/versionadded to the new form.

Refs #20104.
parent 1ddeeb5b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -66,7 +66,7 @@ class VersionDirective(Directive):
            msg = """Only one argument accepted for directive '{directive_name}::'.
            Comments should be provided as content,
            not as an extra argument.""".format(directive_name=self.name)
            raise ValueError(msg)
            raise self.error(msg)

        env = self.state.document.settings.env
        ret = []
+1 −0
Original line number Diff line number Diff line
@@ -105,6 +105,7 @@ TemplateView
    in the URL.

    .. versionchanged:: 1.5

        The context used to be populated with a ``{{ params }}`` dictionary of
        the parameters captured in the URL. Now those parameters are first-level
        context variables.
+1 −0
Original line number Diff line number Diff line
@@ -330,5 +330,6 @@ BaseDateListView
        :meth:`QuerySet.dates()<django.db.models.query.QuerySet.dates>`.

        .. versionchanged:: 1.5

            The ``ordering`` parameter was added, and the default order was
            changed to ascending.
+0 −1
Original line number Diff line number Diff line
@@ -67,7 +67,6 @@ TemplateResponseMixin
    .. attribute:: content_type

        .. versionadded:: 1.5
            The ``content_type`` attribute was added.

        The content type to use for the response. ``content_type`` is passed
        as a keyword argument to ``response_class``. Default is ``None`` --
+1 −0
Original line number Diff line number Diff line
@@ -62,6 +62,7 @@ To set the same ``X-Frame-Options`` value for all responses in your site, put
    )

.. versionchanged:: 1.6

    This middleware is enabled in the settings file generated by
    :djadmin:`startproject`.

Loading