Closed gotounix closed 3 years ago
Try it, I solved a similar problem.
from sqlalchemy import func
@hybrid_property
def word_insensitive(self):
return func.lower(self.word)
The point of hybrid properties is that you can specify the same logic in both Python and SQL. If you don't specify the SQL, then that doesn't work. Check the hybrid prroperty docs
I got errors:
I test
str.split()
can't used neither.