feat(devops): Switch Checkin model to inherit from CenturionModel
ref: #807 #676 #808
This commit is contained in:
@ -1,17 +1,22 @@
|
||||
from django.db import models
|
||||
|
||||
from access.fields import AutoCreatedField
|
||||
from access.models.tenancy import TenancyObject
|
||||
from core.models.centurion import CenturionModel
|
||||
|
||||
from itam.models.software import Software
|
||||
|
||||
|
||||
|
||||
class CheckIn(
|
||||
TenancyObject
|
||||
CenturionModel
|
||||
):
|
||||
|
||||
save_model_history: bool = False
|
||||
_audit_enabled = False
|
||||
|
||||
_notes_enabled = False
|
||||
|
||||
app_namespace = 'devops'
|
||||
|
||||
documentation = ''
|
||||
|
||||
class Meta:
|
||||
|
||||
@ -26,14 +31,6 @@ class CheckIn(
|
||||
verbose_name_plural = 'Deployment Check Ins'
|
||||
|
||||
|
||||
id = models.AutoField(
|
||||
blank=False,
|
||||
help_text = 'Primary key of the entry',
|
||||
primary_key=True,
|
||||
unique=True,
|
||||
verbose_name = 'ID'
|
||||
)
|
||||
|
||||
software = models.ForeignKey(
|
||||
Software,
|
||||
blank = False,
|
||||
@ -69,9 +66,6 @@ class CheckIn(
|
||||
verbose_name = 'Feature'
|
||||
)
|
||||
|
||||
created = AutoCreatedField()
|
||||
|
||||
is_global = None # Field not requied.
|
||||
model_notes = None # Field not required.
|
||||
|
||||
|
||||
@ -79,10 +73,6 @@ class CheckIn(
|
||||
|
||||
return self.feature + '.' + self.deployment_id
|
||||
|
||||
app_namespace = 'devops'
|
||||
|
||||
documentation = ''
|
||||
|
||||
page_layout: dict = []
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user