@@ -0,0 +1,317 @@
+from django.http import HttpResponseForbidden%0A%0A%0Aclass AuthorRequiredMixin(object):%0A    def dispatch(self, request, *args, **kwargs):%0A        if self.get_object().author != self.request.user:%0A            return HttpResponseForbidden()%0A        return super(AuthorRequiredMixin, self).dispatch(request, *args, **kwargs)%0A

Add AuthorRequireMixin