Added null=True to image in PrimaryHero
This commit is contained in:
Родитель
41fd60d968
Коммит
11752ab907
|
@ -0,0 +1,19 @@
|
|||
# Generated by Django 2.2.14 on 2020-07-27 13:33
|
||||
|
||||
from django.db import migrations
|
||||
import olympia.hero.models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('hero', '0013_auto_20200715_1751'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name='primaryhero',
|
||||
name='image',
|
||||
field=olympia.hero.models.WidgetCharField(blank=True, max_length=255, null=True),
|
||||
),
|
||||
]
|
|
@ -139,7 +139,7 @@ class PrimaryHero(ModelBase):
|
|||
PrimaryHeroImage, null=True, on_delete=models.SET_NULL)
|
||||
image = WidgetCharField(
|
||||
choices=DirImageChoices(path=FEATURED_IMAGE_PATH), max_length=255,
|
||||
widget=ImageChoiceWidget, blank=True)
|
||||
widget=ImageChoiceWidget, blank=True, null=True)
|
||||
gradient_color = WidgetCharField(
|
||||
choices=GRADIENT_COLORS.items(), max_length=7,
|
||||
widget=GradientChoiceWidget, blank=True)
|
||||
|
|
Загрузка…
Ссылка в новой задаче