Make it possible to fully delete unlisted/unrated extensions #81
@ -258,7 +258,7 @@ class Extension(
|
||||
mode = not hard and 'soft-' or ''
|
||||
for p in previews:
|
||||
p.delete(hard=hard)
|
||||
log.warning('%(mode)sdeleting preview file pk=% source=%s', mode, p.pk, p.source.name)
|
||||
log.warning('%(mode)sdeleting preview file pk=%s source=%s', mode, p.pk, p.source.name)
|
||||
for v in versions:
|
||||
v.delete(hard=hard)
|
||||
log.warning('%(mode)sdeleting extension pk=%s', mode, self.pk)
|
||||
@ -567,7 +567,6 @@ class Version(CreatedModifiedMixin, RatingMixin, TrackChangesMixin, SoftDeleteMi
|
||||
file = self.file
|
||||
mode = not hard and 'soft-' or ''
|
||||
args = {
|
||||
'extension_id': self.extension_id,
|
||||
'file_id': file.pk,
|
||||
'mode': mode,
|
||||
'source': file.source.name,
|
||||
|
Loading…
Reference in New Issue
Block a user