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

@ -17,7 +17,7 @@ from ormar.models import NewBaseModel # noqa: I202
from ormar.models.helpers.models import group_related_list
if TYPE_CHECKING:
if TYPE_CHECKING: # pragma: no cover
from ormar.fields import ForeignKeyField
from ormar.models import T
else: