From 6a31849bdd547be6c46a2d6011dd1cf987fe7ea4 Mon Sep 17 00:00:00 2001 From: Tudor Amariei Date: Wed, 2 Oct 2024 16:23:20 +0300 Subject: [PATCH] Add base data class for checks models --- src/ngohub/models/checks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ngohub/models/checks.py b/src/ngohub/models/checks.py index 87e46bc..71ae4d9 100644 --- a/src/ngohub/models/checks.py +++ b/src/ngohub/models/checks.py @@ -1,12 +1,13 @@ from dataclasses import dataclass from typing import Union +from ngohub.models.core import BaseDataclass from ngohub.models.organization import OrganizationApplication from ngohub.models.user import User @dataclass -class CheckOrganizationUserApplication: +class CheckOrganizationUserApplication(BaseDataclass): user: Union[User, None] application: Union[OrganizationApplication, None] has_access: Union[bool, None]