diff options
Diffstat (limited to 'docs/ref')
| -rw-r--r-- | docs/ref/class-based-views/base.txt | 5 | ||||
| -rw-r--r-- | docs/ref/contrib/admin/index.txt | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/docs/ref/class-based-views/base.txt b/docs/ref/class-based-views/base.txt index 523b39d0e2..2c90cd4893 100644 --- a/docs/ref/class-based-views/base.txt +++ b/docs/ref/class-based-views/base.txt @@ -65,6 +65,11 @@ View response = MyView.as_view()(request) + .. versionadded:: 1.9 + + The returned view has ``view_class`` and ``view_initkwargs`` + attributes. + .. method:: dispatch(request, *args, **kwargs) The ``view`` part of the view -- the method that accepts a ``request`` diff --git a/docs/ref/contrib/admin/index.txt b/docs/ref/contrib/admin/index.txt index bb72f3fe55..317d48f351 100644 --- a/docs/ref/contrib/admin/index.txt +++ b/docs/ref/contrib/admin/index.txt @@ -1490,6 +1490,11 @@ templates used by the :class:`ModelAdmin` views: url(r'^my_view/$', self.admin_site.admin_view(self.my_view, cacheable=True)) + .. versionadded:: 1.9 + + ``ModelAdmin`` views have ``model_admin`` attributes. Other + ``AdminSite`` views have ``admin_site`` attributes. + .. method:: ModelAdmin.get_form(request, obj=None, **kwargs) Returns a :class:`~django.forms.ModelForm` class for use in the admin add |
