Skip to content
This repository was archived by the owner on Aug 19, 2025. It is now read-only.
This repository was archived by the owner on Aug 19, 2025. It is now read-only.

Use SQLAlchemy filter operators instead of magic__string__kwargs for filtering? #14

@patrys

Description

@patrys

Django's approach leads to ugly code (order_line__variant__product__name__icontains=... etc.), does not allow for explicit aliasing and breaks things like static type checking and autocomplete (PyCharm has tons of Django-specific code to get basic autocomplete to work).

I think it should be possible to use the Alechemy's query builder given that it works in GINO:

https://docs.sqlalchemy.org/en/latest/orm/tutorial.html#common-filter-operators

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