summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--patchwork/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/patchwork/models.py b/patchwork/models.py
index 928ddec..c2b8a9c 100644
--- a/patchwork/models.py
+++ b/patchwork/models.py
@@ -440,7 +440,7 @@ class EmailOptout(models.Model):
return cls.objects.filter(email = email).count() > 0
class PatchChangeNotification(models.Model):
- patch = models.ForeignKey(Patch, primary_key = True)
+ patch = models.OneToOneField(Patch, primary_key = True)
last_modified = models.DateTimeField(default = datetime.datetime.now)
orig_state = models.ForeignKey(State)