Re: Replace Admin Site Foreign Key Field/Dropdown with Textbox?

2010-08-08 Thread vikalp sahni
You can also hide that field which inturn will not load it on page by using "fields" attribute in admin class for that particular model and specify all the fields required to be shown on change list page. Just omit the Foreign Key field in the "fields" list in case u don't need it in admin.

Re: Replace Admin Site Foreign Key Field/Dropdown with Textbox?

2010-08-08 Thread Martin Melin
On Sun, Aug 8, 2010 at 4:00 PM, sixpackistan wrote: > For foreign key fields in the Django Admin, the default display > element is a drop down list box containing all of the foreign key > items from the related model.  I have an asset tracking instance where > this drop down

Replace Admin Site Foreign Key Field/Dropdown with Textbox?

2010-08-08 Thread sixpackistan
For foreign key fields in the Django Admin, the default display element is a drop down list box containing all of the foreign key items from the related model. I have an asset tracking instance where this drop down box can contain hundreds of thousands of items and I am looking to not have the