Hey,
I've been a little distracted but I'm back on to this now...
Thanks for the information, I'm going to try it out now (assuming no
more interruptions!) and I'll get back to you on how I get on...
On Jul 24, 8:55 pm, Matthias Kestenholz
wrote:
> On Fri, Jul 24, 2009 at 10:46 AM, Benjamin
On Fri, Jul 24, 2009 at 10:46 AM, Benjamin Wohlwend wrote:
>
> On Jul 24, 10:37 am, Benjamin Wohlwend wrote:
>
>>
>> if all(f.is_valid() for f in (form1, form2, form3)):
>> # ok, save
>>
>
> Oops, forgot to mention that I had to implement my own version of all
> (), which doesn't short cut:
On Jul 24, 10:37 am, Benjamin Wohlwend wrote:
>
> if all(f.is_valid() for f in (form1, form2, form3)):
> # ok, save
>
Oops, forgot to mention that I had to implement my own version of all
(), which doesn't short cut:
def really_all(iter):
all_true = True
for val in iter:
i
Hi,
On Jul 24, 8:41 am, Matthias Kestenholz
wrote:
> if request.method == 'POST':
> # initialize forms with request.POST and prefix
> if form1.is_valid() and form2.is_valid() and form3.is_valid():
> # save the data from the individual forms
> else:
> #
>
Just a little
On Fri, Jul 24, 2009 at 5:32 AM, sico wrote:
>
> Hi,
>
> I want to be able to edit fields from several different models on the
> same form/view.
>
> The models are related one-to-one... can they be defined as "Inline"
> forms in the admin system?? The documentation doesn't make any
> mention of u
Hi,
I want to be able to edit fields from several different models on the
same form/view.
The models are related one-to-one... can they be defined as "Inline"
forms in the admin system?? The documentation doesn't make any
mention of using inline forms for anything except parent child
relations
6 matches
Mail list logo