[1.7.x] Added test for the #23070 problem
[1.7.x] Added test for the #23070 problem

Backport of e569144910e336d2f76a3a31998ec672377d31cc from master.

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