Make loops tests pass with django syntax.