[UPDT] HORILLA AUDIT: Updated horilla audit by adding abstract class
This commit is contained in:
@@ -19,6 +19,7 @@ from simple_history.signals import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
# from employee.models import Employee
|
# from employee.models import Employee
|
||||||
|
from horilla.models import HorillaModel
|
||||||
from horilla_audit.methods import remove_duplicate_history
|
from horilla_audit.methods import remove_duplicate_history
|
||||||
|
|
||||||
|
|
||||||
@@ -120,19 +121,9 @@ def post_create_horilla_audit_log(sender, instance, *_args, **kwargs):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
class HistoryTrackingFields(models.Model):
|
class HistoryTrackingFields(HorillaModel):
|
||||||
tracking_fields = models.JSONField(null=True, blank=True, editable=False)
|
tracking_fields = models.JSONField(null=True, blank=True, editable=False)
|
||||||
|
|
||||||
|
|
||||||
# class HistoryComment(models.Model):
|
class AccountBlockUnblock(HorillaModel):
|
||||||
# """
|
|
||||||
# HistoryComment model
|
|
||||||
# """
|
|
||||||
|
|
||||||
# employee_id = models.ForeignKey("Employee", on_delete=models.PROTECT)
|
|
||||||
# history_id = models.ForeignKey(HorillaAuditLog, on_delete=models.PROTECT)
|
|
||||||
# message = models.TextField()
|
|
||||||
|
|
||||||
|
|
||||||
class AccountBlockUnblock(models.Model):
|
|
||||||
is_enabled = models.BooleanField(default=False, null=True, blank=True)
|
is_enabled = models.BooleanField(default=False, null=True, blank=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user