Fixed #20659.Error in the example for Using SingleObjectMixin w/ListView

Error in the example for Using SingleObjectMixin with ListView. https://code.djangoproject.com/ticket/20659 
I applied patch created by Baptiste Mispelon. Please code review.  Thanks.