From 69b4ba873efccd3d9ab1908e024cacf40b11ec84 Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 1 Nov 2011 01:25:46 +0000 Subject: [PATCH] add display_image for bestpractices: DB CHANGE --- itf/bestpractices/models.py | 1 + itf/sqldiff011111.sql | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 itf/sqldiff011111.sql diff --git a/itf/bestpractices/models.py b/itf/bestpractices/models.py index 58b66bc..cff4dab 100755 --- a/itf/bestpractices/models.py +++ b/itf/bestpractices/models.py @@ -10,6 +10,7 @@ from django.forms import ModelForm class BestPractice(ItfModel): title = models.CharField(max_length=512) + display_image = models.ImageField(upload_to="upload/images/bestpractices/main/", blank=True, null=True) story = models.TextField() guideline = models.TextField(blank=True) guidelines = models.ManyToManyField("Guideline", null=True, blank=True) diff --git a/itf/sqldiff011111.sql b/itf/sqldiff011111.sql new file mode 100644 index 0000000..0bb39f8 --- /dev/null +++ b/itf/sqldiff011111.sql @@ -0,0 +1,3 @@ +ALTER TABLE `bestpractices_bestpractice` + ADD `display_image` varchar(100); +