feat(devops): Add methods get_url and get_url_kwargs to CheckIn model

ref: #813 #808
This commit is contained in:
2025-06-10 12:12:08 +09:30
parent 9a737ac1c4
commit b17fcf0eac

View File

@ -83,3 +83,34 @@ class CheckIn(
'organization',
'created',
]
def get_url(
self, relative: bool = False, api_version: int = 2, many = False, request: any = None
) -> str:
""" Fetch the Models URL.
Note: this model does not have a details page as its a list only view.
Hence the `many = True`
"""
return super().get_url(
relative = relative,
api_version = api_version,
many = True,
request = request
)
def get_url_kwargs(self, many = False) -> dict:
kwargs = {}
kwargs.update({
'organization_id': self.organization.id,
'software_id': self.software.id
})
return kwargs