Skip to content
New issue

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

Using the sorting method leads to an analysis error in PyCharm #27

Closed
vd2org opened this issue Oct 26, 2020 · 1 comment
Closed

Using the sorting method leads to an analysis error in PyCharm #27

vd2org opened this issue Oct 26, 2020 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@vd2org
Copy link

vd2org commented Oct 26, 2020

PyCharm does not see the asc and desc methods in model fields.

MyModel.timestamp.asc() displayed as error.

query.asc(MyModel.timestamp) looks fine.

Of course both methods work fine.

@art049 art049 added the documentation Improvements or additions to documentation label Oct 27, 2020
@art049
Copy link
Owner

art049 commented Oct 27, 2020

Yes, it's mentionned in the docs already but maybe it's not explicit that it might raise errors with pycharm as well.
image
Maybe changing this "note" to a warning could help as well?

Those errors, will be removed when a mypy/pycharm plugin will be there 😃

@art049 art049 closed this as completed Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants