added docstring
removed references to request.user, use self.user instead