Skip to content

Commit

Permalink
admin: Fill created_by when creating a User()
Browse files Browse the repository at this point in the history
  • Loading branch information
rsebille committed Dec 31, 2024
1 parent cbe99e5 commit c4e6557
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion itou/users/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from itou.users.enums import IdentityProvider, UserKind
from itou.utils.admin import (
ChooseFieldsToTransfer,
CreatedOrUpdatedByMixin,
InconsistencyCheckMixin,
ItouModelAdmin,
ItouTabularInline,
Expand Down Expand Up @@ -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",)}

Expand Down

0 comments on commit c4e6557

Please sign in to comment.