Skip to content

Commit

Permalink
[coopengo_modules/api_token] coog_core: fix global tests following 31…
Browse files Browse the repository at this point in the history
…ce7d1 (#6)

OTH #0000
  • Loading branch information
JCavallo authored and nicoe committed Jul 5, 2023
1 parent 0682e0a commit 3ecc3c1
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions coopengo_modules/api_token/res.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'}

0 comments on commit 3ecc3c1

Please sign in to comment.