add display_image for bestpractices: DB CHANGE

This commit is contained in:
Sanj 2011-11-01 01:25:46 +00:00
parent 6df7d00d11
commit 69b4ba873e
2 changed files with 4 additions and 0 deletions

View File

@ -10,6 +10,7 @@ from django.forms import ModelForm
class BestPractice(ItfModel): class BestPractice(ItfModel):
title = models.CharField(max_length=512) title = models.CharField(max_length=512)
display_image = models.ImageField(upload_to="upload/images/bestpractices/main/", blank=True, null=True)
story = models.TextField() story = models.TextField()
guideline = models.TextField(blank=True) guideline = models.TextField(blank=True)
guidelines = models.ManyToManyField("Guideline", null=True, blank=True) guidelines = models.ManyToManyField("Guideline", null=True, blank=True)

3
itf/sqldiff011111.sql Normal file
View File

@ -0,0 +1,3 @@
ALTER TABLE `bestpractices_bestpractice`
ADD `display_image` varchar(100);