Skip to content

Commit c471123

Browse files
committed
Back to no kwargs
1 parent f701286 commit c471123

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

django_mongodb/utils.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def check_django_compatability():
2626
)
2727

2828

29-
def parse(uri, **kwargs):
29+
def parse(uri):
3030
uri = parse_uri(uri)
3131

3232
host = None
@@ -42,7 +42,7 @@ def parse(uri, **kwargs):
4242
elif len(nodelist) > 1:
4343
host = ",".join([f"{host}:{port}" for host, port in nodelist])
4444

45-
settings_dict = {
45+
return {
4646
"ENGINE": "django_mongodb",
4747
"NAME": uri["database"],
4848
"HOST": host,
@@ -52,11 +52,6 @@ def parse(uri, **kwargs):
5252
"OPTIONS": uri.get("options"),
5353
}
5454

55-
if kwargs:
56-
settings_dict.update(kwargs)
57-
58-
return settings_dict
59-
6055

6156
def set_wrapped_methods(cls):
6257
"""Initialize the wrapped methods on cls."""

0 commit comments

Comments
 (0)