Skip to content

Commit fa428be

Browse files
aclark4lifeCopilot
andauthored
Update django_mongodb_backend/routers.py
Co-authored-by: Copilot <[email protected]>
1 parent c5bcea1 commit fa428be

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

django_mongodb_backend/routers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def allow_migrate(self, db, app_label, model_name=None, **hints):
2020
return False if issubclass(model, EmbeddedModel) else None
2121

2222

23+
# This function is intended to be monkey-patched as a method of ConnectionRouter.
2324
def kms_provider(self, model, *args, **kwargs):
2425
for router in self.routers:
2526
func = getattr(router, "kms_provider", None)

0 commit comments

Comments
 (0)