On Sat, Feb 25, 2012 at 5:03 PM, Ethan Jucovy <ethan.jucovy@gmail.com> wrote:
* You'll want to add a line ``objects = GeoManager`` on each model that you will want to perform geospatial queries against.
That should be ``objects = GeoManager()`` (imported from django.contrib.gis.db.models).
And, I meant to link to the docs on that: https://docs.djangoproject.com/en/dev/ref/contrib/gis/model-api/#geomanager
-Ethan
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
No comments:
Post a Comment