refactor(core): Add fn get_organization to centurion mixin

Fn is required for perms to work correctly

ref: #870
This commit is contained in:
2025-07-13 22:28:01 +09:30
parent 9a516fbebc
commit 3baed3f8f5
5 changed files with 6 additions and 16 deletions

View File

@ -196,6 +196,12 @@ class Centurion(
def get_organization(self):
"""Return the objects organization"""
return self.organization
def get_url(
self, relative: bool = False, api_version: int = 2, many = False, request: any = None
) -> str:

View File

@ -136,11 +136,6 @@ class OperatingSystem(
return self.name
def get_organization(self):
return self.organization
class OperatingSystemVersion(
CenturionModel

View File

@ -274,9 +274,6 @@ class Software(
self.organization = app_settings.global_organization
def get_organization(self):
return self.organization
class SoftwareVersion(
CenturionModel

View File

@ -276,10 +276,6 @@ class Cluster(
]
def get_organization(self):
return self.organization
@property
def rendered_config(self):

View File

@ -368,7 +368,3 @@ class Service(
config.update(self.config)
return config
def get_organization(self):
return self.organization