Answer the question
In order to leave comments, you need to log in
Return database name from using?
Let's say I have an object:
someobj = SomeObject.objects.using('db1').get(id=some_id)
Answer the question
In order to leave comments, you need to log in
They asked very spherically in a vacuum:
You can inspect the attributes of an object using dir(someobj), but its attributes can also be objects
Or read the code of the called method of the class being used.
Who knows where SomeObject or possibly delegated classes put what values.
Ps: an abstract answer to an abstract question
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question