diff options
| author | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-12-12 16:55:42 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-01-15 22:28:37 +0100 |
| commit | 6c120508b6445cb0d6198b4eacccd411960686d2 (patch) | |
| tree | 95eda814c10c2d78b1f0d4dc258b55b17fecea49 /tests/admin_utils/models.py | |
| parent | 817bc5800b40bcc74534de5e5176919cb826494f (diff) | |
Refs #34462 -- Removed ModelAdmin.log_deletion() and LogEntryManager.log_action() per deprecation timeline.
Diffstat (limited to 'tests/admin_utils/models.py')
| -rw-r--r-- | tests/admin_utils/models.py | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/admin_utils/models.py b/tests/admin_utils/models.py index 8e812e27eb..243f314b03 100644 --- a/tests/admin_utils/models.py +++ b/tests/admin_utils/models.py @@ -1,5 +1,4 @@ from django.contrib import admin -from django.contrib.admin.models import LogEntry, LogEntryManager from django.db import models from django.utils.translation import gettext_lazy as _ @@ -87,26 +86,3 @@ class VehicleMixin(Vehicle): class Car(VehicleMixin): pass - - -class InheritedLogEntryManager(LogEntryManager): - model = LogEntry - - def log_action( - self, - user_id, - content_type_id, - object_id, - object_repr, - action_flag, - change_message="", - ): - return LogEntry.objects.create( - user_id=user_id, - content_type_id=content_type_id, - object_id=str(object_id), - # Changing actual repr to test repr - object_repr="Test Repr", - action_flag=action_flag, - change_message=change_message, - ) |
