Files
centurion_erp/app/core/models/comment.py

39 lines
578 B
Python

from django.db import models
from access.models import TenancyObject
class CommentCommonFields(models.Model):
class Meta:
abstract = True
id = models.AutoField(
blank=False,
help_text = 'Comment ID Number',
primary_key=True,
unique=True,
verbose_name = 'Number',
)
created = AutoCreatedField()
modified = AutoCreatedField()
class Comment(
TenancyObject,
CommentCommonFields,
):
class Meta:
ordering = [
'ticket',
'created',
'id',
]