jonra1993 / fastapi-alembic-sqlmodel-async

This is a project template which uses FastAPI, Pydantic 2.0, Alembic and async SQLModel as ORM. It shows a complete async CRUD using authentication and role base access control.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Function get_multi_paginated_ordered in base_crud.py

joshung opened this issue · comments

Hi Jonra
You and your team do amazing work.
So but little bit problem with Function get_multi_paginated_ordered
if order_by is None or order_by not in columns: order_by = self.model.id

order_by shoud like this
order_by = "id"

Hello @joshung thanks for find this issue I am going to check it and solve it

Thanks for report this issue @joshung It has been solved here 37e8a81