document raw_id_fields option in InlineModelAdmin
|Reported by:||Matthew Flanagan <mattimustang@…>||Owned by:|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
A quick patch to document this option.
Index: docs/admin.txt =================================================================== --- docs/admin.txt (revision 8051) +++ docs/admin.txt (working copy) @@ -569,6 +569,17 @@ .. _max_num in formsets: ../modelforms/#limiting-the-number-of-objects-editable +``raw_id_fields`` +~~~~~~~~~~~~~~~~~ + +By default, Django's admin uses a select-box interface (<select>) for +fields that are ``ForeignKey``. Sometimes you don't want to incur the +overhead of having to select all the related instances to display in the +drop-down. + +``raw_id_fields`` is a list of fields you would like to change +into a ``Input`` widget for the primary key. + ``template`` ~~~~~~~~~~~~
Change History (5)
comment:1 Changed 6 years ago by shawnr
- Needs documentation unset
- Needs tests unset
- Owner changed from nobody to shawnr
- Patch needs improvement unset
Note: See TracTickets for help on using tickets.