Skip to content

DRU-664 -- Read every row with Model.all() - #739

Merged
czpython merged 1 commit into
mainfrom
commonzenpython/dru-664-read-every-row-with-modelall
Sep 27, 2026
Merged

czpython merged 1 commit into
mainfrom
commonzenpython/dru-664-read-every-row-with-modelall

Conversation

@czpython

Copy link
Copy Markdown
Owner

Model.all() returns every row, in the class's ordering or primary key order, the name Tortoise and Django use for that read.

quotes = await Quote.all()
approved = await Quote.filter(status="approved")

filter() now needs a field to match and raises a TypeError that points at all(), so each read has one shape. The author guide and the scaffold show all().

Model.all() returns every row, in the class's ordering or primary key order.
filter() now needs a field to match and raises a TypeError that points at
all(), so each read has one shape. The author guide and the scaffold show
all().
@mintlify

mintlify Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
druks 🟢 Ready View Preview Sep 27, 2026, 4:56 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@czpython
czpython merged commit 1d5de1a into main Sep 27, 2026
4 checks passed
@czpython
czpython deleted the commonzenpython/dru-664-read-every-row-with-modelall branch September 27, 2026 17:06

This branch was successfully deployed

1 active deployment
staging - docs — de164109 Deployed Sep 27, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant