Re: Caching model choice fields in admin inlines.

2011-07-07 Thread Vimukthi
I have a formset in my application where there is a select field and also a multiselect field in a form. In some object edit view, number of times each form in the formset gets called increases with the increase of number of relationships between objects in the db(see my question on stackoverflow -

Re: Caching model choice fields in admin inlines.

2011-05-25 Thread andybak
I seem to recall a similar problem rears it's ugly head on editable changelists too. And obviously it's potentially worse there as n can often be larger. On May 23, 4:29 pm, Sean Brant wrote: > If you have ever used a inline in the admin for a model that contained > a model choice field you have

Caching model choice fields in admin inlines.

2011-05-23 Thread Sean Brant
If you have ever used a inline in the admin for a model that contained a model choice field you have probably noticed it has to query the database for each row to fill the select drop-down. This results in n+ identical queries. I though it might be useful to have a way to tell a admin inline to ca