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 f701286 commit c471123Copy full SHA for c471123
django_mongodb/utils.py
@@ -26,7 +26,7 @@ def check_django_compatability():
26
)
27
28
29
-def parse(uri, **kwargs):
+def parse(uri):
30
uri = parse_uri(uri)
31
32
host = None
@@ -42,7 +42,7 @@ def parse(uri, **kwargs):
42
elif len(nodelist) > 1:
43
host = ",".join([f"{host}:{port}" for host, port in nodelist])
44
45
- settings_dict = {
+ return {
46
"ENGINE": "django_mongodb",
47
"NAME": uri["database"],
48
"HOST": host,
@@ -52,11 +52,6 @@ def parse(uri, **kwargs):
52
"OPTIONS": uri.get("options"),
53
}
54
55
- if kwargs:
56
- settings_dict.update(kwargs)
57
-
58
- return settings_dict
59
60
61
def set_wrapped_methods(cls):
62
"""Initialize the wrapped methods on cls."""
0 commit comments