From: pm13 <petr.marh...@gmail.com>
Date: Sun, 09 Sep 2007 14:37:48 -0700
Local: Sun, Sep 9 2007 5:37 pm
Subject: Re: ANN: newforms-admin syntax change for inlines
I have a problem with this changeset. I have some inlines with foreign
keys. By default there is one SQL query for each row - result is not cached. So I used this code in formfield_for_dbfield: if isinstance(db_field, models.ForeignKey): The argument cache_choices was used in ModelChoiceField for caching I think that there was call of function "formset_for_model" in each So if I have two users with different query, I can't cache it. But it I created example of the first solution: On 9 Zář, 21:24, "Joseph Kocherhans" <jkocherh...@gmail.com> wrote: > On 9/8/07, Joseph Kocherhans <jkocherh...@gmail.com> wrote:
> > If you use the newforms-admin branch and the edit inline > > I'm planning on breaking the current syntax for defining inlines in > I've checked this in as r6072. No factory functions yet. I'll probably > http://code.djangoproject.com/changeset/6072 > Joseph You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||