Is possible integrate a multidatabase support to Model serializer ? #9136
Unanswered
gjae
asked this question in
Ideas & Suggestions
Replies: 1 comment
-
I think the get_db_name() method will be more flexible in this case. def get_db_name(self): |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Think that: add a using_database propierty with "default" as default value, this could be util for integrate a multi database support easier.
For exameple; in the line
instance = ModelClass._default_manager.create(**validated_data)
could beinstance = ModelClass._default_manager.using(self.using_database).create(**validated_data)
.You think that's possible?
Beta Was this translation helpful? Give feedback.
All reactions