make best practice story image optional
This commit is contained in:
parent
27693b18e3
commit
d0661daf16
|
@ -68,7 +68,7 @@ class BestPractice(ItfModel):
|
||||||
|
|
||||||
class BestPracticeStory(models.Model):
|
class BestPracticeStory(models.Model):
|
||||||
text = models.TextField()
|
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)
|
bestpractice = models.ForeignKey(BestPractice)
|
||||||
|
|
||||||
def __unicode__(self):
|
def __unicode__(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user