diff --git a/apps/config/migrations/0005_auto_20180326_1314.py b/apps/config/migrations/0005_auto_20180326_1314.py new file mode 100644 index 00000000..af993523 --- /dev/null +++ b/apps/config/migrations/0005_auto_20180326_1314.py @@ -0,0 +1,23 @@ +# Generated by Django 2.0.3 on 2018-03-26 13:14 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + dependencies = [ + ('config', '0004_config_main_page_top_image'), + ] + + operations = [ + migrations.AlterField( + model_name='config', + name='MAIN_PAGE_TOP_IMAGE', + field=models.ImageField(blank=True, null=True, upload_to=''), + ), + migrations.AlterField( + model_name='config', + name='SCHOOL_LOGO_IMAGE', + field=models.ImageField(blank=True, null=True, upload_to=''), + ), + ] diff --git a/apps/config/models.py b/apps/config/models.py index b78f9c16..240fe7d5 100644 --- a/apps/config/models.py +++ b/apps/config/models.py @@ -10,8 +10,8 @@ class Config(models.Model): SERVICE_COMMISSION = models.IntegerField(default=10) SERVICE_DISCOUNT_MIN_AMOUNT = models.IntegerField(default=3500) SERVICE_DISCOUNT = models.IntegerField(default=1000) - SCHOOL_LOGO_IMAGE = models.ImageField(null=True) - MAIN_PAGE_TOP_IMAGE = models.ImageField(null=True) + SCHOOL_LOGO_IMAGE = models.ImageField(null=True, blank=True) + MAIN_PAGE_TOP_IMAGE = models.ImageField(null=True, blank=True) def save(self, *args, **kwargs): self.pk = 1