From d0661daf1687fccb52d6a0d51e884bf2d466e5df Mon Sep 17 00:00:00 2001 From: Sanj Date: Sun, 6 Mar 2011 20:21:22 +0530 Subject: [PATCH] make best practice story image optional --- itf/bestpractices/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itf/bestpractices/models.py b/itf/bestpractices/models.py index ecd2365..fc9b00f 100644 --- a/itf/bestpractices/models.py +++ b/itf/bestpractices/models.py @@ -68,7 +68,7 @@ class BestPractice(ItfModel): class BestPracticeStory(models.Model): text = models.TextField() - image = models.ImageField(upload_to='upload/images/bestpractices/stories/') + image = models.ImageField(upload_to='upload/images/bestpractices/stories/', blank=True, null=True) bestpractice = models.ForeignKey(BestPractice) def __unicode__(self):