From 3ecc3c1b69efd7a03011ebcc27e7a830eac9f3ca Mon Sep 17 00:00:00 2001 From: Jean Cavallo Date: Wed, 14 Jun 2023 17:03:15 +0200 Subject: [PATCH] [coopengo_modules/api_token] coog_core: fix global tests following 31ce7d1 (#6) OTH #0000 --- coopengo_modules/api_token/res.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/coopengo_modules/api_token/res.py b/coopengo_modules/api_token/res.py index 4ca9f6db38b..3dbb77f5dec 100644 --- a/coopengo_modules/api_token/res.py +++ b/coopengo_modules/api_token/res.py @@ -15,8 +15,5 @@ class User(metaclass=PoolMeta): tokens = fields.One2Many('api.token', 'user', 'Tokens') @classmethod - def copy(cls, instances, defaults=None): - if defaults is None: - defaults = {} - defaults.setdefault('tokens', None) - return super().copy(instances, defaults) + def _export_skips(cls): + return super(UserWithApi, cls)._export_skips() | {'tokens'}