This commit is contained in:
johnnydowns 2023-09-14 19:02:10 +08:00 committed by GitHub
commit a8ad5ef5d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -30,7 +30,8 @@ class ConfigCollection(Collection):
def create(self, **kwargs):
obj = self.client.api.create_config(**kwargs)
return self.prepare_model(obj)
config = self.client.configs.get(obj.get('ID'))
return self.prepare_model(config)
create.__doc__ = APIClient.create_config.__doc__
def get(self, config_id):