Skip to content

raw query with dictionary causes crash #309

Closed
@Gibheer

Description

@Gibheer

Hi,

if I want to build a custom query which takes a dictionary for parameters the debug toolbar crashes.

Person.object.raw('select %(id)s as id', {'id': 23})

The error message is

Exception Type: TypeError
Exception Value: format requires a mapping

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