hbakri / django-ninja-crud

🧩 Modular, composable API views for scalable Django Ninja projects, with built-in CRUD.
https://django-ninja-crud.readme.io
MIT License
503 stars 14 forks source link

how the ListModelView can work with 'filters' query parameter? #408

Closed horizon365 closed 5 months ago

horizon365 commented 5 months ago

when get the list view, the query parameter filters must be blank ,or it says "Input should be None". 图片 图片

horizon365 commented 5 months ago

sorry, i find another releated issue. close it.

horizon365 commented 5 months ago

@hbakri i am sorry, but the releated PR seem doesn't release or publish at the lastest version 0.4.1.

hbakri commented 5 months ago

Hi @horizon365! Thanks for raising this issue, I apologize for the inconvenience caused by the bug.

You're correct that the current version (0.4.1) doesn't include the fix. I had addressed this in a previous PR a long time ago but mistakenly held back the changes for a major release instead of releasing them promptly.

The good news is that version 0.5, releasing this weekend, will include this fix along with a lot of other improvements and features! 🙌

As a workaround, you can use explicit None values for the query parameter filters when fetching the list view in Django Ninja's API docs.