Commit c4eb2883 authored by Russell Keith-Magee's avatar Russell Keith-Magee
Browse files

Fixed #10510 -- Added missing versionadded marker for formfield_for_foreignkey...

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
parent 01757192
Loading
Loading
Loading
Loading
+9 −7
Original line number Diff line number Diff line
@@ -770,6 +770,8 @@ This wrapping will protect ``self.my_view`` from unauthorized access.
``formfield_for_foreignkey(self, db_field, request, **kwargs)``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

.. versionadded:: 1.1

The ``formfield_for_foreignkey`` method on a ``ModelAdmin`` allows you 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::