def __init__(self, key=None, *args, **kwargs): if not key: raise KeyError("You need to supply a key to the File model!") self._content = None self._is_directory = key.endswith("/") Document.__init__(self, key=key, *args, **kwargs)