Fixed an erroneous import in example code.

Backported documentation fix from master.
https://code.djangoproject.com/ticket/20595