Fixed #22112 -- Added RedirectView.pattern_name to CBV flattened index

Also moved accessor method get_redirect_url next to its attribute url
for consistency with the other views.

Thanks nikunj.sg for the report
This commit is contained in:
Alasdair Nicol 2014-02-21 14:07:54 +00:00 committed by Baptiste Mispelon
parent 476abc7ea7
commit 462edd22e5
1 changed files with 2 additions and 2 deletions

View File

@ -54,9 +54,10 @@ RedirectView
**Attributes** (with optional accessor): **Attributes** (with optional accessor):
* :attr:`~django.views.generic.base.View.http_method_names` * :attr:`~django.views.generic.base.View.http_method_names`
* :attr:`~django.views.generic.base.RedirectView.pattern_name`
* :attr:`~django.views.generic.base.RedirectView.permanent` * :attr:`~django.views.generic.base.RedirectView.permanent`
* :attr:`~django.views.generic.base.RedirectView.query_string` * :attr:`~django.views.generic.base.RedirectView.query_string`
* :attr:`~django.views.generic.base.RedirectView.url` * :attr:`~django.views.generic.base.RedirectView.url` [:meth:`~django.views.generic.base.RedirectView.get_redirect_url`]
**Methods** **Methods**
@ -64,7 +65,6 @@ RedirectView
* ``delete()`` * ``delete()``
* :meth:`~django.views.generic.base.View.dispatch` * :meth:`~django.views.generic.base.View.dispatch`
* ``get()`` * ``get()``
* :meth:`~django.views.generic.base.RedirectView.get_redirect_url`
* ``head()`` * ``head()``
* :meth:`~django.views.generic.base.View.http_method_not_allowed` * :meth:`~django.views.generic.base.View.http_method_not_allowed`
* ``options()`` * ``options()``