set models to private (#476)
This commit is contained in:
@@ -41,6 +41,8 @@ class RoleImage(ChangeLoggingMixin, ExportTemplatesMixin, EventRulesMixin):
|
||||
|
||||
__role: Optional[Role] = None
|
||||
|
||||
_netbox_private = True
|
||||
|
||||
@property
|
||||
def role(self) -> Role:
|
||||
if self.__role:
|
||||
@@ -111,6 +113,8 @@ class CoordinateGroup(NetBoxModel):
|
||||
blank = True,
|
||||
)
|
||||
|
||||
_netbox_private = True
|
||||
|
||||
class Meta:
|
||||
ordering = ['name']
|
||||
|
||||
@@ -138,6 +142,8 @@ class Coordinate(NetBoxModel):
|
||||
'Smaller values correspond to a position further up on the monitor.',
|
||||
)
|
||||
|
||||
_netbox_private = True
|
||||
|
||||
def get_or_create_default_group(group_id):
|
||||
# Default group named "default" must always exist in order to make sure
|
||||
# that coordinate values can be stored even if no coordinate group has been
|
||||
@@ -187,6 +193,8 @@ class CircuitCoordinate(NetBoxModel):
|
||||
'Smaller values correspond to a position further up on the monitor.',
|
||||
)
|
||||
|
||||
_netbox_private = True
|
||||
|
||||
def get_or_create_default_group(group_id):
|
||||
# Default group named "default" must always exist in order to make sure
|
||||
# that coordinate values can be stored even if no coordinate group has been
|
||||
@@ -236,6 +244,8 @@ class PowerPanelCoordinate(NetBoxModel):
|
||||
'Smaller values correspond to a position further up on the monitor.',
|
||||
)
|
||||
|
||||
_netbox_private = True
|
||||
|
||||
def get_or_create_default_group(group_id):
|
||||
# Default group named "default" must always exist in order to make sure
|
||||
# that coordinate values can be stored even if no coordinate group has been
|
||||
@@ -285,6 +295,8 @@ class PowerFeedCoordinate(NetBoxModel):
|
||||
'Smaller values correspond to a position further up on the monitor.',
|
||||
)
|
||||
|
||||
_netbox_private = True
|
||||
|
||||
def get_or_create_default_group(group_id):
|
||||
# Default group named "default" must always exist in order to make sure
|
||||
# that coordinate values can be stored even if no coordinate group has been
|
||||
@@ -387,5 +399,7 @@ class IndividualOptions(NetBoxModel):
|
||||
default=False
|
||||
)
|
||||
|
||||
_netbox_private = True
|
||||
|
||||
def __str___(self):
|
||||
return f"{self.user_id}"
|
||||
|
||||
Reference in New Issue
Block a user