﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
21310	Admin recent actions section doesn't show content with settings.AUTH_USER_MODEL	franklin.steve02@…	nobody	"If a custom model is specified in settings (AUTH_USER_MODEL), then the query for recent activity always returns no events.

On some digging I have found the problem to be with the select related in the AdminLogNode like;

context[self.varname] = LogEntry.objects.filter(user__id__exact=user_id).select_related('content_type', 'user')[:self.limit]

Changing this to settings.AUTH_USER_MODEL as

context[self.varname] = LogEntry.objects.filter(user__id__exact=user_id).select_related('content_type', settings.AUTH_USER_MODEL)[:self.limit]

Actually I believe from the documentation this should be get_user_model() but I haven't tested that.

thanks

Steve"	Bug	closed	contrib.admin	1.4	Normal	worksforme	admin event log		Unreviewed	1	0	0	0	1	0
