MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / delete

Method delete

mongoengine/fields.py:1984–1990  ·  view source on GitHub ↗
(self, *args, **kwargs)

Source from the content-addressed store, hash-verified

1982 )
1983
1984 def delete(self, *args, **kwargs):
1985 # deletes thumbnail
1986 out = self.get()
1987 if out and out.thumbnail_id:
1988 self.fs.delete(out.thumbnail_id)
1989
1990 return super().delete()
1991
1992 def _put_thumbnail(self, thumbnail, format, progressive, **kwargs):
1993 w, h = thumbnail.size

Callers

nothing calls this directly

Calls 2

getMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected