Skip to content

cannot import name 'RawSQL' from 'django.db.models' #381

@a-p-f

Description

@a-p-f

With version 0.24.0, db/models/__init__.py contains (on line 44):

from .expressions import RawSQL as RawSQL

But (at least in Django 6.0.4 and 4.2.28), django/db/models/__init__.py does not actually import RawSQL. It imports a subset of the names from "expressions", but not RawSQL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions