You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I agree that we probably should use a custom query method for that.
You can add an implementation of a "Manager" (or something like that)
which contains custom methods that you can use like that:
Event.objects.custom_query()....
However, it doesn't feel right for a query method to add an attribute
to the model object.
Seems like endless pagination broke distance calculation.
Anyway.... distance calculation should be moved from the view to Event.objects.filter e.g.
The text was updated successfully, but these errors were encountered: