feat(access): Add Logging function to Tenancy model

ref: #744 #436 #752
This commit is contained in:
2025-05-10 23:38:58 +09:30
parent 24b6bcfa47
commit 1bff76c637

View File

@ -1,4 +1,4 @@
# from django.conf import settings
import logging
from django.db import models
# from django.contrib.auth.models import User, Group
@ -193,6 +193,16 @@ class TenancyObject(SaveHistory):
only be used when there is model inheritence.
"""
_log: logging.Logger = None
def get_log(self):
if self._log is None:
self._log = logging.getLogger('centurion.' + self._meta.app_label)
return self._log
page_layout: list = None
note_basename: str = None