﻿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
27405	AdminLogNode render TypeError exception while calling get_admin_log with no user (1.8.x)	Ihor Polyakov	Ihor Polyakov	"If I call in template:
`{% get_admin_log 10 as admin_log %}` (without `for_user user`):
it will throw an exception: `TypeError: slice indices must be integers`
from this line (django/contrib/admin/templatetags/log.py):
`context[self.varname] = LogEntry.objects.all().select_related('content_type', 'user')[:self.limit]`
because self.limit was not wrapped with `int` function like it is in other if statement branch:
...`).select_related('content_type', 'user')[:int(self.limit)]`

My simple fix is here:
https://github.com/django/django/pull/7453"	Bug	closed	contrib.admin	1.8	Normal	wontfix	exception, TypeError, log, TypeError		Unreviewed	1	0	0	0	0	0
