Fixed #10510 -- Added missing versionadded marker for formfield_for_foreignkey docs. Thanks to onno.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@10148 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
01757192e6
commit
c4eb2883bc
|
@ -770,6 +770,8 @@ This wrapping will protect ``self.my_view`` from unauthorized access.
|
||||||
``formfield_for_foreignkey(self, db_field, request, **kwargs)``
|
``formfield_for_foreignkey(self, db_field, request, **kwargs)``
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
.. versionadded:: 1.1
|
||||||
|
|
||||||
The ``formfield_for_foreignkey`` method on a ``ModelAdmin`` allows you to
|
The ``formfield_for_foreignkey`` method on a ``ModelAdmin`` allows you to
|
||||||
override the default formfield for a foreign key field. For example, to
|
override the default formfield for a foreign key field. For example, to
|
||||||
return a subset of objects for this foreign key field based on the user::
|
return a subset of objects for this foreign key field based on the user::
|
||||||
|
|
Loading…
Reference in New Issue