From 28117bb2bbf622b0ea73dd30168684138d560a28 Mon Sep 17 00:00:00 2001 From: Jon Date: Sat, 24 May 2025 00:31:11 +0930 Subject: [PATCH] chore(core): remove methods not required ref: #770 #767 --- app/core/models/centurion.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/core/models/centurion.py b/app/core/models/centurion.py index 8746089c..79d77e9c 100644 --- a/app/core/models/centurion.py +++ b/app/core/models/centurion.py @@ -27,11 +27,6 @@ class CenturionModel( _notes_enabled: bool = True """Should a table for notes be created for this model""" - context: dict = { - 'logger': None, - 'request': None, - } - class Meta: @@ -218,19 +213,13 @@ class CenturionModel( if self.id: - self._before = self.__class__.objects.get( id = self.id ).get_audit_values() + self._before = self.objects.get( id = self.id ).get_audit_values() super().save(force_insert=force_insert, force_update=force_update, using=using, update_fields=update_fields) - def validate_constraints(self, exclude = None) -> None: - - super().validate_constraints(exclude = exclude) - - - class CenturionSubModel( CenturionModel ):