Re: Relation fields do not support nested lookups'

2016-04-08 Thread Jonty Needham
Sent too soon! def calculate_score(self): return x.m2m_set.filter(condition).aggregate(avg=Avg('m2m_subfield__score'))['avg'] returns the "Relation fields do not support nested lookups" error On Fri, Apr 8, 2016 at 11:27 AM, Jonty Needham wrote: > I'm not sure what this error means or how

Re: Relation fields do not support nested lookups

2015-10-27 Thread Tim Graham
As noted on the ticket, it looks like you're missing an app in INSTALLED_APPS. On Tuesday, October 27, 2015 at 10:55:21 AM UTC-4, probleem support wrote: > > test project proving my point > https://github.com/gerdkoetje/dualdbtest > -- You received this message because you are subscribed to the

Re: Relation fields do not support nested lookups

2015-10-27 Thread probleem support
test project proving my point https://github.com/gerdkoetje/dualdbtest -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscr...@googlegroups.com.

Re: Relation fields do not support nested lookups

2015-10-27 Thread probleem support
sorry for that, ill spend some time on creating a test project with 2 databases on sqlite But still if anyone is using multidb please confirm to me that this does work in your projects. Any hints will be appreciated -- You received this message because you are subscribed to the Google Groups "

Re: Relation fields do not support nested lookups

2015-10-27 Thread Tim Graham
A minimal project that reproduces the error would be helpful. Please avoid duplicating your post on django-users and in Trac (until it's a confirmed bug in Django). Thanks! On Tuesday, October 27, 2015 at 8:53:20 AM UTC-4, probleem support wrote: > > He all, > > Does anyone know why i can't do a