From: Stephen Finucane Date: Tue, 7 Feb 2017 21:56:18 +0000 (+0000) Subject: models: Make series.project nullable X-Git-Tag: v2.0.0-rc1~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2050140b44f3b6b2f83edd042cc59867ba158065;p=thirdparty%2Fpatchwork.git models: Make series.project nullable This is reflected in the migration but not the model. Signed-off-by: Stephen Finucane Fixes: c1d8a0d ("Fix series.project migration logic") Reviewed-by: Andy Doan --- diff --git a/patchwork/models.py b/patchwork/models.py index 5add0179..ae406684 100644 --- a/patchwork/models.py +++ b/patchwork/models.py @@ -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,