about summary refs log tree commit diff
path: root/gn_auth/auth/authentication
diff options
context:
space:
mode:
authorMunyoki Kilyungi2024-03-12 00:05:17 +0300
committerMunyoki Kilyungi2024-03-13 10:29:02 +0300
commit3ac8cc38768bf3aca1ecc75db094bcb97b36cce7 (patch)
tree50817be04a126fe62b390d9d6a127408af1b72f4 /gn_auth/auth/authentication
parent7e11ddbbdd6ddfa28367c02d0a3a7f3932c369ae (diff)
downloadgn-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')
0 files changed, 0 insertions, 0 deletions