-
Notifications
You must be signed in to change notification settings - Fork 14
Fix filter by relationships #52
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
Conversation
| ), | ||
| [], | ||
| ) | ||
| for cast_type in [field.type_ for field in fields]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
мне кажется немного странным такое решение. почему бы не сделать так?
for field for field in fields:
cast_type = field.type_и отдельный вопрос: а мы тут casted_value перезаписываем каждый раз в цикле? не нужно куда-то сохранить полученное значение? или нам нужно только последнее? мб как-то прокомментировать в коде?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
почему бы не сделать так?
Да, так будет лучше
а мы тут casted_value перезаписываем каждый раз в цикле?
Это оригинальный подход, поведение которого я не менял. Звучит разумно останавливать цикл на первом успешном касте
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
если ничего не сломается
4984137 to
79fb3b0
Compare
3aa1a60 to
3fae8f0
Compare
No description provided.