refactor order bys into OrderQuery, add ordering to through models too

This commit is contained in:
collerek
2021-02-25 17:28:05 +01:00
parent c139ca4f61
commit 503f589fa7
16 changed files with 388 additions and 210 deletions

View File

@ -56,7 +56,7 @@ from ormar.fields import (
) # noqa: I100
from ormar.models import Model
from ormar.models.metaclass import ModelMeta
from ormar.queryset import QuerySet
from ormar.queryset import OrderAction, QuerySet
from ormar.relations import RelationType
from ormar.signals import Signal
@ -106,4 +106,5 @@ __all__ = [
"BaseField",
"ManyToManyField",
"ForeignKeyField",
"OrderAction",
]