def get_permission_object(self):
if not isinstance(self, BaseCreateView):<EOL><INDENT>if hasattr(self, '<STR_LIT>') and callable(self.get_object):<EOL><INDENT>return self.get_object()<EOL><DEDENT><DEDENT>return None<EOL>
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.