How To Filter GTE, LTE On Float Or Decimal Via Django ORM
I'm trying to filter GPS coordinate points (not using Geodjango) on my app. I need to filter a range, but the float values of the GPS coordinates give me this error django.core.exc
Solution 1:
You have an additional underscore in your filter. If your field name is spam
, then it should be spam__lte=VALUE
. You need two underscores separating the field and the operator.
Post a Comment for "How To Filter GTE, LTE On Float Or Decimal Via Django ORM"