[PATCH v3 1/9] models: Make series.project nullable

Stephen Finucane stephen at that.guru
Wed Feb 8 09:12:36 AEDT 2017


This is reflected in the migration but not the model.

Signed-off-by: Stephen Finucane <stephen at that.guru>
Fixes: c1d8a0d ("Fix series.project migration logic")
Cc: Andy Doan <andy.doan at linaro.org>
---
 patchwork/models.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/patchwork/models.py b/patchwork/models.py
index ea40fbf..e5d844d 100644
--- a/patchwork/models.py
+++ b/patchwork/models.py
@@ -550,7 +550,8 @@ class Series(models.Model):
     """An collection of patches."""
 
     # parent
-    project = models.ForeignKey(Project, related_name='series')
+    project = models.ForeignKey(Project, related_name='series', null=True,
+                                blank=True)
 
     # content
     cover_letter = models.ForeignKey(CoverLetter,
-- 
2.9.3



More information about the Patchwork mailing list