perf: add connection options for mongodb

pull/13539/head
Eric 2024-07-05 17:33:01 +08:00 committed by Eric_Lee
parent 2f7391efc3
commit d14d8869ac
1 changed files with 6 additions and 0 deletions

View File

@ -208,6 +208,12 @@ class Protocol(ChoicesMixin, models.TextChoices):
'default': 'admin',
'label': _('Auth source'),
'help_text': _('The database to authenticate against')
},
'connection_options': {
'type': 'str',
'default': '',
'label': _('Connection options'),
'help_text': _('The connection specific options eg. retryWrites=false&retryReads=false')
}
}
},