Skip to content Skip to sidebar Skip to footer

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"