Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distance Calculation broken #17

Open
koeulr opened this issue May 14, 2012 · 1 comment
Open

Distance Calculation broken #17

koeulr opened this issue May 14, 2012 · 1 comment

Comments

@koeulr
Copy link
Collaborator

koeulr commented May 14, 2012

Seems like endless pagination broke distance calculation.
Anyway.... distance calculation should be moved from the view to Event.objects.filter e.g.

@mst
Copy link
Owner

mst commented May 14, 2012

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.

Any ideas?

2012/5/14 koeulr
[email protected]:

Seems like endless pagination broke distance calculation.
Anyway.... distance calculation should be moved from the view to Event.objects.filter e.g.


Reply to this email directly or view it on GitHub:
#17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants