Remove redundant overrides of Model.delete

Both of these models have pre_delete handlers which do the same things,
so I think these are unnecessary.
This commit is contained in:
Will Thompson 2016-02-26 11:15:29 +00:00 committed by j
parent d69a8efd97
commit 2a07e2a1ab
2 changed files with 0 additions and 8 deletions

View file

@ -525,10 +525,6 @@ class File(models.Model):
status[name] = u'queued'
return status
def delete(self, *args, **kwargs):
self.delete_files()
super(File, self).delete(*args, **kwargs)
def delete_frames(self):
frames = os.path.join(settings.MEDIA_ROOT, self.get_path('frames'))
if os.path.exists(frames):

View file

@ -436,10 +436,6 @@ class Item(models.Model):
if os.path.exists(path):
shutil.rmtree(path)
def delete(self, *args, **kwargs):
self.delete_files()
super(Item, self).delete(*args, **kwargs)
def merge_with(self, other, save=True):
'''
move all related tables to other and delete self