We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
list[str]
ordering
Hi!
TypedModelMeta.ordering currently only allows a Sequence of str, but accoding to the docs, expressions like OrderBy should also be allowed
str
OrderBy
Example of valid input:
class Entry(models.Model): type = models.CharField(max_length=100) item = models.CharField(max_length=100, null=True) class Meta(TypedModelMeta): ordering = ["type", F("item").asc(nulls_first=True)]
The text was updated successfully, but these errors were encountered:
Yes. Are you interested in submitting a PR? 😆
Sorry, something went wrong.
TypedModelMeta
Successfully merging a pull request may close this issue.
Hi!
TypedModelMeta.ordering currently only allows a Sequence of
str
, but accoding to the docs, expressions likeOrderBy
should also be allowedExample of valid input:
The text was updated successfully, but these errors were encountered: