Skip to content

Commit 0b04dd3

Browse files
authored
fix int casting
1 parent 769fb6b commit 0b04dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

django_mongodb/base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def init_connection_state(self):
159159
def get_connection_params(self):
160160
settings_dict = {
161161
"host": self.settings_dict["HOST"] or None,
162-
"port": int(self.settings_dict["PORT"] or None),
162+
"port": int(self.settings_dict["PORT"] or 27017),
163163
**self.settings_dict["OPTIONS"],
164164
}
165165

0 commit comments

Comments
 (0)