mirror of
https://github.com/django/django.git
synced 2025-07-23 05:05:17 +00:00
Fixed #24055 -- Keep reference to view class for resolve()
This commit is contained in:
parent
67235fd4ef
commit
a420f83e7d
9 changed files with 42 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue