[1.7.x] Fixed #24501 -- Improved auth.decorators.user_passes_test() example.
[1.7.x] Fixed #24501 -- Improved auth.decorators.user_passes_test() example.

Backport of fca14cd3f27a01f7ba1fe32ea9587fa75b85713a from master

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