]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
models: Make series.project nullable
authorStephen Finucane <stephen@that.guru>
Tue, 7 Feb 2017 21:56:18 +0000 (21:56 +0000)
committerStephen Finucane <stephen@that.guru>
Wed, 1 Mar 2017 22:11:04 +0000 (22:11 +0000)
This is reflected in the migration but not the model.

Signed-off-by: Stephen Finucane <stephen@that.guru>
Fixes: c1d8a0d ("Fix series.project migration logic")
Reviewed-by: Andy Doan <andy.doan@linaro.org>
patchwork/models.py

index 5add0179d0134c7d885f72c91680fa9b6cfeb2b6..ae406684bb42948ec4eb897310c45c2cbf5a8611 100644 (file)
@@ -557,7 +557,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,