Re: Saving formsets with multiple databases

2010-08-04 Thread Paulo Almeida
Sorry if this is obvious and you're looking for a more direct way, but If it's only the formset save that fails, I would suggest: instances = formset.save(commit=False) for instance in instances: instance.save(using=database) I have never used multiple databases though, so I don't know if tha

Saving formsets with multiple databases

2010-08-03 Thread Melanie
I am developing a formset for an application which uses multiple databases. On load of the formset, I am able to utilize: model.objects.using(database).get(id) to get an instance of the object from the active database. However, when the formset is submitted, I generate a new formset from the da