I am trying to use the F()
for my queryset
I had my previous question about using F()
in F() expressions in django keeps giving me 0
but then somehow I figured, I cannot use F()
's length for my function. At first I did not get why then I figured ending up I was trying to do len(F())
which is why I am getting error since F()
is type of <class 'django.db.models.expressions.F'>
instead of a string or number
type.
Is there a way to get the F()
value so I can use len(F())
?
Thanks in advance for any help.