fixup! Infer configparser getter from field type

This commit is contained in:
Guewen Baconnier 2018-07-25 12:55:48 +02:00 committed by Stéphane Bidoul (ACSONE)
parent abbfec896b
commit 8325b7ee74
No known key found for this signature in database
GPG Key ID: BCAB2555446B5B92
1 changed files with 3 additions and 7 deletions

View File

@ -75,7 +75,7 @@ class ServerEnvMixin(models.AbstractModel):
base_fields = super()._server_env_fields
sftp_fields = {
"sftp_server": {},
"sftp_port": {'getter': "getint"},
"sftp_port": {},
"sftp_login": {},
"sftp_password": {
"no_default_field": True,
@ -143,12 +143,8 @@ class ServerEnvMixin(models.AbstractModel):
def _server_env_fields(self):
base_fields = super()._server_env_fields
sftp_fields = {
"sftp_server": {
"getter": "get",
},
"sftp_port": {
"getter": "getint",
},
"sftp_server": {},
"sftp_port": {},
"sftp_login": {},
"sftp_password": {},
}