Merge branch 'v0.4' of http://github.com/schallis/mongoengine into v0.4
This commit is contained in:
@@ -614,15 +614,10 @@ class GridFSProxy(object):
|
||||
def delete(self):
|
||||
# Delete file from GridFS, FileField still remains
|
||||
self.fs.delete(self.grid_id)
|
||||
|
||||
#self.grid_id = None
|
||||
# Doesn't make a difference because will be put back in when
|
||||
# reinstantiated We should delete all the metadata stored with the
|
||||
# file too
|
||||
self.grid_id = None
|
||||
|
||||
def replace(self, file, **kwargs):
|
||||
self.delete()
|
||||
self.grid_id = None
|
||||
self.put(file, **kwargs)
|
||||
|
||||
def close(self):
|
||||
|
||||
Reference in New Issue
Block a user