Skip to content

Commit

Permalink
Add missing call to super() in parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
gutard committed Jul 27, 2015
1 parent 8440f72 commit 33319ae
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions geotrek/common/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,11 +455,11 @@ def start(self):
self.attachments_to_delete = {obj.pk: set(Attachment.objects.attachments_for_object(obj)) for obj in self.model.objects.all()}

def end(self):
if not self.delete_attachments:
return
for atts in self.attachments_to_delete.itervalues():
for att in atts:
att.delete()
if self.delete_attachments:
for atts in self.attachments_to_delete.itervalues():
for att in atts:
att.delete()
super(AttachmentParserMixin, self).end()

def filter_attachments(self, src, val):
if not val:
Expand Down

0 comments on commit 33319ae

Please sign in to comment.