From 9160ed2fd9ae349511f607edb0b31d84a4442c19 Mon Sep 17 00:00:00 2001 From: Jeremy Carbaugh Date: Thu, 5 Jan 2012 10:46:32 -0500 Subject: [PATCH] set blank=True on Article.redirect_to --- markupwiki/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/markupwiki/models.py b/markupwiki/models.py index 8ff4517..620c6e0 100644 --- a/markupwiki/models.py +++ b/markupwiki/models.py @@ -36,7 +36,7 @@ class Article(models.Model): title = models.CharField(max_length=200) creator = models.ForeignKey(User, related_name='wiki_articles', blank=True, null=True) status = models.IntegerField(choices=ARTICLE_STATUSES, default=PUBLIC) - redirect_to = models.ForeignKey('self', null=True) + redirect_to = models.ForeignKey('self', blank=True, null=True) def __unicode__(self): return self.title