Thursday, June 23, 2011

Re: Inconsistent keyword filtering on FK

On Jun 23, 2011, at 2:21 PM, Cal Leeming [Simplicity Media Ltd] wrote:

> Payee.objects.filter(
> person = Person(id=26)
> )
>
> or.. Payee.objects.filter(
> person__id = 26
> )

Both of these return the same error - it lists out all the "choices" which are all fields on the payee table itself (and the one I mentioned that appears in the cache)

--
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