El Sat, 30 Jun 2012 17:18:27 -0700 (PDT)
Odagi escribió:
> class Restaurant(models.Model):
> place = models.OneToOneField(Place, primary_key=True)
> serves_hot_dogs = models.BooleanField()
> serves_pizza = models.BooleanField()
Use GeoManager in your Restaurant
I thought that it was fixed along with
https://code.djangoproject.com/ticket/12344 ... Bascially it aoubt that
Django picks "origin manager" to be used in related models (and thus
related model manager) as well and that seem to cause queries to fail.
On Sun, Jul 1, 2012 at 3:42 AM, Ethan Jucovy
On Sat, Jun 30, 2012 at 8:31 PM, Odagi wrote:
> It's working! Thanks a lot.
> Is There a problem with mixing regular models fields with geomodels ones?
>
No, there's no problem, as long as you remember to use a GeoManager on
every model that ever does geospatial queries
It's working! Thanks a lot.
Is There a problem with mixing regular models fields with geomodels ones?
The single underscore is correct:
> https://docs.djangoproject.com/en/dev/ref/contrib/gis/geoquerysets/#distance-lte
>
> But, you need to use a `objects = GeoManager()` on the Restaurants
On Sat, Jun 30, 2012 at 8:19 PM, Nikolas Stevenson-Molnar <
nik.mol...@consbio.org> wrote:
> Try a double underscore between distance and lte.
>
The single underscore is correct:
https://docs.djangoproject.com/en/dev/ref/contrib/gis/geoquerysets/#distance-lte
But, you need to use a `objects =
Try a double underscore between distance and lte.
_Nik
On 6/30/2012 5:18 PM, Odagi wrote:
> Hello all. I'm wondering how to resolve this problem with a
> GeoDjango.This are my models:
>
>
> from django.db import models
> from django.contrib.gis.db import models as geomodels
> from
Hello all. I'm wondering how to resolve this problem with a GeoDjango.This
are my models:
from django.db import models
from django.contrib.gis.db import models as geomodels
from django.contrib.gis.geos import Point
from django.contrib.gis.measure import D
class Place(geomodels.Model):
name
7 matches
Mail list logo