diff options
author | Munyoki Kilyungi | 2024-03-12 00:05:17 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2024-03-13 10:29:02 +0300 |
commit | 3ac8cc38768bf3aca1ecc75db094bcb97b36cce7 (patch) | |
tree | 50817be04a126fe62b390d9d6a127408af1b72f4 /gn_auth/auth/authentication/oauth2/grants | |
parent | 7e11ddbbdd6ddfa28367c02d0a3a7f3932c369ae (diff) | |
download | gn-auth-3ac8cc38768bf3aca1ecc75db094bcb97b36cce7.tar.gz |
Define GroupRole using frozen dataclass.
* gn_auth/auth/authorisation/resources/groups/models.py: Import
dataclasses.asdict. Remove dictify import.
(GroupRole): Use frozen dataclass.
(GroupRole.dictify): Replace dictify(...) with self.role.dictify().
* gn_auth/auth/authorisation/resources/groups/views.py:
(group_roles): Replace dictify with asdict.
(view_group_role): Ditto.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn_auth/auth/authentication/oauth2/grants')
0 files changed, 0 insertions, 0 deletions