- [Answered ]-Django: Order_by 2 variables and Reverse the order of one of them
- [Answered ]-In Django (v1.6.5), what's the best practice for location of Templates, Static files?
0👍
You’ll have a hard time returning the distance value inside a QerySet object (see my question on the same thing), at least until Django 1.2. The easiest thing is to just move your query into a model manager, but return a Python list instead of a queryset. You might also look at Python’s geo library for handling these kinds of queries.
👤Tom
Source:stackexchange.com