Deal with the case that the RHS of a lookup is a query, also fix an attribute error
Deal with the case that the RHS of a lookup is a query, also fix an attribute error

grzes/djangae,martinogden/djangae,stucox/djangae,chargrizzle/djangae,pablorecio/djangae,nealedj/djangae,leekchan/djangae,kirberich/djangae,martinogden/djangae,grzes/djangae,grzes/djangae,asendecka/djangae,kirberich/djangae,trik/djangae,nealedj/djangae,stucox/djangae,chargrizzle/djangae,jscissr/djangae,wangjun/djangae,asendecka/djangae,jscissr/djangae,pablorecio/djangae,armirusco/djangae,leekchan/djangae,jscissr/djangae,SiPiggles/djangae,trik/djangae,SiPiggles/djangae,potatolondon/djangae,wangjun/djangae,potatolondon/djangae,chargrizzle/djangae,asendecka/djangae,stucox/djangae,kirberich/djangae,pablorecio/djangae,armirusco/djangae,wangjun/djangae,nealedj/djangae,armirusco/djangae,SiPiggles/djangae,trik/djangae,martinogden/djangae,leekchan/djangae