Re: Saving several copies of an object

2010-01-06 Thread pjmorse
On Jan 5, 1:11 pm, Matthias Kestenholz wrote: > This won't do it, because ns is a Form, not a Model object. Something > like this might work though: > > obj = ns.save(commit=False) > > for language in languages: >     obj.id = None >     obj.language = language >     obj.save() > > Matthias Thank

Re: Saving several copies of an object

2010-01-06 Thread Simon Brunning
2010/1/5 pjmorse : > It's a multi-language site: US, UK, DE. (Why US and UK are considered > different languages is organizational politics beyond the scope of my > work.) UK and US English are enormously similar, but there are real differences in vocabulary (e.g. lift versus elevator, bin versus

Re: Saving several copies of an object

2010-01-05 Thread Daniel Roseman
On Jan 5, 5:16 pm, pjmorse wrote: > I recently picked up a Django project from another developer, and I > seem to have introduced an annoying bug. > > It's a multi-language site: US, UK, DE. (Why US and UK are considered > different languages is organizational politics beyond the scope of my > wor

Re: Saving several copies of an object

2010-01-05 Thread Tomasz Zieliński
On 5 Sty, 19:11, Matthias Kestenholz wrote: > 2010/1/5 Tomasz Zieliński : > > > > > > > > > On 5 Sty, 18:16, pjmorse wrote: > > >> This is done by looping over the list of languages and saving a > >> NewsTrans in each language. The source language is marked as already > >> translated, the other

Re: Saving several copies of an object

2010-01-05 Thread Matthias Kestenholz
2010/1/5 Tomasz Zieliński : > > > On 5 Sty, 18:16, pjmorse wrote: >> >> This is done by looping over the list of languages and saving a >> NewsTrans in each language. The source language is marked as already >> translated, the other two are not (that is, they still need >> translating). >> >> The

Re: Saving several copies of an object

2010-01-05 Thread Tomasz Zieliński
On 5 Sty, 18:16, pjmorse wrote: > > This is done by looping over the list of languages and saving a > NewsTrans in each language. The source language is marked as already > translated, the other two are not (that is, they still need > translating). > > The problem is that this is done with ns.sa

Saving several copies of an object

2010-01-05 Thread pjmorse
I recently picked up a Django project from another developer, and I seem to have introduced an annoying bug. It's a multi-language site: US, UK, DE. (Why US and UK are considered different languages is organizational politics beyond the scope of my work.) When a "news article" is created, its body