Fix in bans for new foreignkeyfield query