code: def get_permission_object(self):
          
          if not isinstance(self, BaseCreateView):
              # We do NOT want to call get_object in a BaseCreateView, see issue #85
              if hasattr(self, 'get_object') and callable(self.get_object):
                  # Requires SingleObjectMixin or equivalent ``get_object`` method
                  return self.get_object()
          return None
docs: Override this method to provide the object to check for permission
          against. By default uses ``self.get_object()`` as provided by
          ``SingleObjectMixin``. Returns None if there's no ``get_object``
          method.