We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c5bcea1 commit fa428beCopy full SHA for fa428be
django_mongodb_backend/routers.py
@@ -20,6 +20,7 @@ def allow_migrate(self, db, app_label, model_name=None, **hints):
20
return False if issubclass(model, EmbeddedModel) else None
21
22
23
+# This function is intended to be monkey-patched as a method of ConnectionRouter.
24
def kms_provider(self, model, *args, **kwargs):
25
for router in self.routers:
26
func = getattr(router, "kms_provider", None)
0 commit comments