Created
May 17, 2019 22:52
-
-
Save math77/ab9a7d722b62d045dd6c104f2a01de2c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location_user = Point(-6.291, -36.020, srid=4326) | |
Locais.objects.annotate(distance=Distance("location", location_user)).order_by('distance') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
O meu modelo está dessa forma:
![AAAAmodelo](https://user-images.githubusercontent.com/21244454/57975874-65cc1280-79c2-11e9-8389-b9ff430de79d.png)
Será que pode ser algo do MySQL?