Re: Specify the database for a Django ModelForm instance

2016-08-10 Thread Phil Boutros
Ben Finney wrote: > > The person who wrote that question must think very like myself. > > That doesn't address the question about ‘ModelForm.clean’ or > ‘ModelForm.is_valid’, though; how to tell the instance which database to > use for those? I must admit to not using multi-DB myself, but I t

Re: Specify the database for a Django ModelForm instance

2016-08-09 Thread Ben Finney
Phil Boutros writes: > Ben Finney wrote: > > How can I specify which database (by its alias name) a Django > > ModelForm should use > > > What is the equivalent for using='foo' when instantiating a ModelForm > > for the model, or calling its methods (ModelForm.clean, ModelForm.save, > > etc.)?

Re: Specify the database for a Django ModelForm instance

2016-08-09 Thread Phil Boutros
Ben Finney wrote: > Howdy all, > > How can I specify which database (by its alias name) a Django ModelForm > should use > What is the equivalent for using='foo' when instantiating a ModelForm > for the model, or calling its methods (ModelForm.clean, ModelForm.save, > etc.)? You would specify

Specify the database for a Django ModelForm instance

2016-08-08 Thread Ben Finney
Howdy all, How can I specify which database (by its alias name) a Django ModelForm should use? (I've had trouble getting this question in to the Django forum, so I'm trying here as this is still Python-related.) A Django ModelForm knows its corresponding model, and the fields included. The Mode