Opened 5 years ago

Last modified 5 years ago

#30034 closed Bug

Shows wrong user on list_display in LogEntryAdmin — at Initial Version

Reported by: Muslu Y. Owned by: nobody
Component: contrib.admin Version: 2.1
Severity: Normal Keywords: logentry, logentryadmin, list_display, wrong user
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

Hi all;

Logs are listed wrongly at list records on page (list_display - change_list.html).

For example;
Wrong user (username:muslu) in /admin/admin/logentry/
True user (username:admin) in /admin/admin/logentry/1/change/

class LogEntryAdmin(admin.ModelAdmin):
    list_display = ['content_type', 'user', 'object_repr', 'action_time']
    list_filter = ['user', 'content_type']

Django: 2.1.3
settings.AUTH_USER_MODEL: default
DATABASE_ROUTERS: at this system we are using 2 projects on different servers but we are accessing both project from one SQL server. So we use only one SQL user table. (Users are same for all projects.) (router.AuthRouter)

Change History (2)

Note: See TracTickets for help on using tickets.
Back to Top