Changes between Version 3 and Version 4 of Ticket #25615


Ignore:
Timestamp:
Oct 27, 2015, 9:54:46 AM (9 years ago)
Author:
gerdkoetje
Comment:

test project proving this issue https://github.com/gerdkoetje/dualdbtest

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #25615 – Description

    v3 v4  
    1 Does anyone know why i can't do any relation lookups on any database other then the default database in 1.8.5 this worked fine in 1.6.1. It keeps telling me: `Relation fields do not support nested lookups`.
     1He all,
     2
     3Does anyone know why i can't do any relation lookups on any database other then the default database in 1.8.5 this worked fine in 1.6.1
     4it keeps trowing me: Relation fields do not support nested lookups
    25
    36for example on
    4 `adds = ProfielenFlirts.objects.filter(voor__user__profielenuserprofile__fictief=True).filter(Q(antwoord='') | Q(antwoord__isnull=True)).count()`
     7adds = ProfielenFlirts.objects.filter(voor__user__profielenuserprofile__fictief=True).filter(Q(antwoord='') | Q(antwoord__isnull=True)).count()
    58
    69ProfielenFlirts is a non default database, the relation lookup is in the same database do.
     
    811
    912my router
    10 {{{
    1113class DatingRouter(object):
    1214    def db_for_read(self, model, **hints):
     
    3234        else: # but all other models/databases are fine
    3335            return True
    34 }}}
     36
     37any help would be appriciated
Back to Top