We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent debfe66 commit fb7321bCopy full SHA for fb7321b
patchwork/models.py
@@ -574,8 +574,12 @@ class Comment(EmailMixin, models.Model):
574
575
def save(self, *args, **kwargs):
576
super(Comment, self).save(*args, **kwargs)
577
- if hasattr(self.submission, 'patch'):
578
- self.submission.patch.refresh_tag_counts()
+ # NOTE(stephenfin): Mitigate an issue with Python 3.4 + Django 1.6
+ try:
579
+ if hasattr(self.submission, 'patch'):
580
+ self.submission.patch.refresh_tag_counts()
581
+ except Patch.DoesNotExist:
582
+ pass
583
584
def delete(self, *args, **kwargs):
585
super(Comment, self).delete(*args, **kwargs)
0 commit comments