Use request instead of self.request in dispatch to be compatible with django 1.4