Skip to content

Commit

Permalink
Fix missing super() in ThreadedComment.delete()
Browse files Browse the repository at this point in the history
  • Loading branch information
vdboor committed Jun 3, 2012
1 parent 3fb2e3d commit 6ea6b25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions threadedcomments/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def delete(self, *args, **kwargs):
if self.parent_id:
prev_child_id = ThreadedComment.objects.filter(parent=self.parent_id).order_by('-submit_date').values_list('pk', flat=True)[0]
ThreadedComment.objects.filter(pk=self.parent_id).update(last_child=prev_child_id)
super(ThreadedComment, self).delete(*args, **kwargs)

class Meta(object):
ordering = ('tree_path',)
Expand Down

0 comments on commit 6ea6b25

Please sign in to comment.