Add django view class mixin from upstream project.

Hi,

A simple addition, taken from the upstream project.

Missing docs and tests, but seems to work for us.