[1.7.x] Fixed a test failure introduced by 214d1e1b0f.
[1.7.x] Fixed a test failure introduced by 214d1e1b0f.

Backport of 9bc377d7d0 from master

oscaro/django,oscaro/django,oscaro/django,oscaro/django,jyotsna1820/django,jyotsna1820/django,jyotsna1820/django,jyotsna1820/django