mirror of
https://github.com/jazzband/django-auditlog.git
synced 2026-03-16 22:20:26 +00:00
17 lines
437 B
Python
17 lines
437 B
Python
from django.apps import AppConfig
|
|
from django.utils.translation import gettext_lazy as _
|
|
|
|
|
|
class AuditlogConfig(AppConfig):
|
|
name = "auditlog"
|
|
verbose_name = _("Audit log")
|
|
default_auto_field = "django.db.models.AutoField"
|
|
|
|
def ready(self):
|
|
from auditlog.registry import auditlog
|
|
|
|
auditlog.register_from_settings()
|
|
|
|
from auditlog import models
|
|
|
|
models.changes_func = models._changes_func()
|