Electronics & Programming

develissimo

Open Source electronics development and programming

  • You are not logged in.

#1 Jan. 26, 2011 03:57:11

B. H.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Error filtering using bboverlaps


I am getting the following error when I try a complicated filter with a join
involving bboverlaps.

Join on field 'shape' not permitted. Did you misspell 'bboverlaps' for
the lookup type?


Here is the line that causes the problem.

saved_properties =
saved_properties.filter(property__parcel__shape__bboxoverlaps=mybbox)

Is this a legitimate way to use bboverlaps?

--
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+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#2 Jan. 26, 2011 07:59:08

Jani T.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Error filtering using bboverlaps


On Wednesday 26 January 2011 05:57:01 B. Heath Robinson wrote:
> I am getting the following error when I try a complicated filter with a
> join involving bboverlaps.
>
> Join on field 'shape' not permitted. Did you misspell 'bboverlaps' for
> the lookup type?
>
>
> Here is the line that causes the problem.
>
> saved_properties =
> saved_properties.filter(property__parcel__shape__bboxoverlaps=mybbox)
>
> Is this a legitimate way to use bboverlaps?

You didn't posted your models, but does all of those, property and parcel have
explicit definition GeoManager as their default manager?

--

Jani Tiainen

--
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+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

#3 Jan. 27, 2011 06:06:34

b.
Registered: 2009-11-02
Reputation: +  0  -
Profile   Send e-mail  

Error filtering using bboverlaps


Great. I missed that part of the documentation. I changed my
managers, and it worked.

On Jan 26, 1:58 am, Jani Tiainen <rede...@gmail.com> wrote:
> On Wednesday 26 January 2011 05:57:01 B. Heath Robinson wrote:
>
> > I am getting the following error when I try a complicated filter with a
> > join involving bboverlaps.
>
> > Join on field 'shape' not permitted. Did you misspell 'bboverlaps' for
> > the lookup type?
>
> > Here is the line that causes the problem.
>
> > saved_properties =
> > saved_properties.filter(property__parcel__shape__bboxoverlaps=mybbox)
>
> > Is this a legitimate way to use bboverlaps?
>
> You didn't posted your models, but does all of those, property and parcel have
> explicit definition GeoManager as their default manager?
>
> --
>
> Jani Tiainen

--
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+unsubscr...@googlegroups.com.
For more options, visit this group athttp://groups.google.com/group/django-users?hl=en.

Offline

Board footer

Moderator control

Enjoy the 23rd of October
PoweredBy

The Forums are managed by develissimo stuff members, if you find any issues or misplaced content please help us to fix it. Thank you! Tell us via Contact Options
Leave a Message
Welcome to Develissimo Live Support