From c4e655752e188e21ff9889412aa38401f8c0bd1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20S=C3=A9bille?= Date: Mon, 30 Dec 2024 20:18:15 +0100 Subject: [PATCH] admin: Fill `created_by` when creating a `User()` --- itou/users/admin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/itou/users/admin.py b/itou/users/admin.py index 3d5d77e8fa..b29fac98ee 100644 --- a/itou/users/admin.py +++ b/itou/users/admin.py @@ -31,6 +31,7 @@ from itou.users.enums import IdentityProvider, UserKind from itou.utils.admin import ( ChooseFieldsToTransfer, + CreatedOrUpdatedByMixin, InconsistencyCheckMixin, ItouModelAdmin, ItouTabularInline, @@ -298,7 +299,7 @@ def get_fields_to_transfer_for_job_seekers(): @admin.register(models.User) -class ItouUserAdmin(InconsistencyCheckMixin, UserAdmin): +class ItouUserAdmin(InconsistencyCheckMixin, CreatedOrUpdatedByMixin, UserAdmin): class Media: css = {"all": ("css/itou-admin.css",)}