Update chapter04.rst

Make it compatible with the newer django.