Skip to content

SimpleLazyObject issue in TemplatesPanel #1136

Open
@andyhasit

Description

@andyhasit

I'm getting an error when debug_toolbar.panels.templates.TemplatesPanel is enabled.

Cannot query "andrew": Must be "User" instance.

Which is triggered at line 115 in debug_toolbar/panels/templates/panel.py.

The problem is the value is a SimpleLazyObject and this may be social_django's fault so I'm not sure if this is an issue which belongs here or over there.

Can someone have a look and let me know who's camp it falls in? Happy to do fix and PR myself if I'm pointed in right direction but I'm a bit scuppered for now.

Full paste here

Django==2.1.5
django-debug-toolbar==1.11
social-auth-app-django==3.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions