]> git.ozlabs.org Git - patchwork/blobdiff - apps/patchwork/models.py
Add unconfirmed registration expiry
[patchwork] / apps / patchwork / models.py
index ec5727d25a862776a6489dcd078cb9166106814e..7371d8fcd1b65ca15887ce5c2f783ad73b648225 100644 (file)
@@ -31,7 +31,8 @@ import random
 class Person(models.Model):
     email = models.CharField(max_length=255, unique = True)
     name = models.CharField(max_length=255, null = True, blank = True)
-    user = models.ForeignKey(User, null = True, blank = True)
+    user = models.ForeignKey(User, null = True, blank = True,
+            on_delete = models.SET_NULL)
 
     def __unicode__(self):
         if self.name: