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

Re: ModelForm - field sort order

2009-03-23 Thread PNM
Thanks - that's it. Sanity confirmed. Those "new in Django xx" comments are invaluable (when they're there!) for tired eyes looking at two superficially identical documents. On Mar 23, 11:40 am, Russell Keith-Magee <freakboy3...@gmail.com> wrote: > On Mon, Mar 23, 2009 at

ModelForm - field sort order

2009-03-23 Thread PNM
I have a sorting problem with a completely basic ModelForm instance (the class has only Meta with model and fields) -- the object's __iter__ seems to be following object.fields (as defined in the model), rather than Meta.fields (as the documentation leads me to expect). Is it me, or is there