Specify the database for a Django ModelForm instance

Phil Boutros philb at philb.ca
Wed Aug 10 13:52:13 EDT 2016


Ben Finney <ben+python at benfinney.id.au> 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 think this set of
answers may point you in the right direction:

http://stackoverflow.com/questions/35214706/django-model-form-is-valid-in-specific-database


Phil
-- 
AH#61  Wolf#14  BS#89  bus#1  CCB#1  SENS  KOTC#4       philb at philb.ca
http://philb.ca         EKIII rides with me:  http://eddiekieger.com



More information about the Python-list mailing list