Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

[1.4.X] Fixed #9471 - Expanded ModelAdmin.raw_id_fields docs; thanks …

…adroffne for the suggestion.

Backport of da958eb from master
  • Loading branch information...
commit baf1f1dcde1f318fdb6514eaa8497fc958aa69d3 1 parent ce168bb
@timgraham timgraham authored
BIN  docs/ref/contrib/admin/_images/raw_id_fields.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 docs/ref/contrib/admin/index.txt
@@ -814,6 +814,14 @@ subclass::
class ArticleAdmin(admin.ModelAdmin):
raw_id_fields = ("newspaper",)
+ The ``raw_id_fields`` ``Input`` widget should contain a primary key if the
+ field is a ``ForeignKey`` or a comma separated list of values if the field
+ is a ``ManyToManyField``. The ``raw_id_fields`` widget shows a magnifying
+ glass button next to the field which allows users to search for and select
+ a value:
+ .. image:: _images/raw_id_fields.png
.. attribute:: ModelAdmin.readonly_fields
.. versionadded:: 1.2

0 comments on commit baf1f1d

Please sign in to comment.
Something went wrong with that request. Please try again.