Re: ModelChoiceField - large lookup tables

2009-03-24 Thread Thomas Guettler
Hi, for the Admin Interface there is raw_id_fields. In the code of my application I use my ButtonWidget. It renders itself as a hidden Input field and a button. If you click on the button you get a query page to search for the related object. After selection it writes the value back to the

ModelChoiceField - large lookup tables

2009-03-24 Thread PNM
Before I re-invent the wheel: is there any generally accepted or recommended generic way to handle ModelChoiceFields with very large datasets in Django? My current example is an address>post/ZIP-code relationship where Django's automatic field creation pulls in the whole postcode table with