add display_image for bestpractices: DB CHANGE
This commit is contained in:
parent
6df7d00d11
commit
69b4ba873e
|
@ -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)
|
||||
|
|
3
itf/sqldiff011111.sql
Normal file
3
itf/sqldiff011111.sql
Normal file
|
@ -0,0 +1,3 @@
|
|||
ALTER TABLE `bestpractices_bestpractice`
|
||||
ADD `display_image` varchar(100);
|
||||
|
Loading…
Reference in New Issue
Block a user