X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=apps%2Fpatchwork%2Fmodels.py;h=d70fdb208eab49a29eb62daf1487c38db03993ab;hb=b261b3cff0c7f4aacb6c9bda5f5491d340b1af17;hp=e516be29d6730664f0a027248d9ec56dcfb9222e;hpb=a72679a9622db66e828e86377f29c9c0c6574d69;p=patchwork diff --git a/apps/patchwork/models.py b/apps/patchwork/models.py index e516be2..d70fdb2 100644 --- a/apps/patchwork/models.py +++ b/apps/patchwork/models.py @@ -220,7 +220,7 @@ class Patch(models.Model): def mbox(self): comment = None try: - comment = Comment.objects.get(msgid = self.msgid) + comment = Comment.objects.get(patch = self, msgid = self.msgid) except Exception: pass @@ -308,6 +308,7 @@ class UserPersonConfirmation(models.Model): person.link_to_user(self.user) person.save() self.active = False + self.save() def save(self): max = 1 << 32