'Regression test for ticket #20088: admin log depends on User model
having id field as primary key.
The old implementation raised an AttributeError when trying to use
the id field.'

def test_get_admin_log_templatetag_custom_user(self):

    context = Context({'user': CustomIdUser()})
    template_string = '{%    load    log    %}{%    get_admin_log    10    as    admin_log    for_user    user    %}'
    template = Template(template_string)
    self.assertEqual(template.render(context), '')
