Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #9471 - Expanded ModelAdmin.raw_id_fields docs; thanks adroffne…

… for the suggestion.
  • Loading branch information...
commit da958eb2098372c20cc3aaf905777b1a8d3144eb 1 parent 1b096ad
Tim Graham authored October 24, 2012
BIN  docs/ref/contrib/admin/_images/raw_id_fields.png
8  docs/ref/contrib/admin/index.txt
@@ -803,6 +803,14 @@ subclass::
803 803
         class ArticleAdmin(admin.ModelAdmin):
804 804
             raw_id_fields = ("newspaper",)
805 805
 
  806
+    The ``raw_id_fields`` ``Input`` widget should contain a primary key if the
  807
+    field is a ``ForeignKey`` or a comma separated list of values if the field
  808
+    is a ``ManyToManyField``.  The ``raw_id_fields`` widget shows a magnifying
  809
+    glass button next to the field which allows users to search for and select
  810
+    a value:
  811
+
  812
+    .. image:: _images/raw_id_fields.png
  813
+
806 814
 .. attribute:: ModelAdmin.readonly_fields
807 815
 
808 816
     By default the admin shows all fields as editable. Any fields in this

0 notes on commit da958eb

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