I have a model called FieldMap which is used throughout my project. I decided recently that the physical database for this model will exist on another machine (other than the default).
So I now have two databases setup in my settings: default and dev.
I can use both databases like this:
FieldMap.objects.using('dev/default').all()
Because my project has already been written, I dont want to have to go through code and make the changes every time I read/write from this model.
So after all that, I was wondering if there is a way to tell a model which database to read/write from by default?