
from django.db import (
    migrations,
    models,
)


class Migration(migrations.Migration):

    dependencies = [
        ('accelerator', '0098_update_startup_update_20220408_0441'),
    ]

    operations = [
        migrations.AddField(
            model_name='program',
            name='hubspot_url',
            field=models.URLField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='program',
            name='program_image',
            field=models.ImageField(null=True, upload_to=''),
        ),
    ]


import sorl.thumbnail.fields
from django.db import (
    migrations,
    models,
)


class Migration(migrations.Migration):

    dependencies = [
        ('accelerator', '0098_update_startup_update_20220408_0441'),
    ]

    operations = [
        migrations.AddField(
            model_name='program',
            name='hubspot_url',
            field=models.URLField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='program',
            name='program_image',
            field=sorl.thumbnail.fields.ImageField(
              null=True,
              upload_to='program_images'),
        ),
    ]

Fix image field import and migration
[AC-9452] Fix image field import and migration

  
+ import sorl.thumbnail.fields
  from django.db import (
      migrations,
      models,
  )
  
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('accelerator', '0098_update_startup_update_20220408_0441'),
      ]
  
      operations = [
          migrations.AddField(
              model_name='program',
              name='hubspot_url',
              field=models.URLField(blank=True, null=True),
          ),
          migrations.AddField(
              model_name='program',
              name='program_image',
-             field=models.ImageField(null=True, upload_to=''),
+             field=sorl.thumbnail.fields.ImageField(
+               null=True,
+               upload_to='program_images'),
          ),
      ]
  
Fix image field import and migration
## Code Before:

from django.db import (
    migrations,
    models,
)


class Migration(migrations.Migration):

    dependencies = [
        ('accelerator', '0098_update_startup_update_20220408_0441'),
    ]

    operations = [
        migrations.AddField(
            model_name='program',
            name='hubspot_url',
            field=models.URLField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='program',
            name='program_image',
            field=models.ImageField(null=True, upload_to=''),
        ),
    ]

## Instruction:
Fix image field import and migration
## Code After:

import sorl.thumbnail.fields
from django.db import (
    migrations,
    models,
)


class Migration(migrations.Migration):

    dependencies = [
        ('accelerator', '0098_update_startup_update_20220408_0441'),
    ]

    operations = [
        migrations.AddField(
            model_name='program',
            name='hubspot_url',
            field=models.URLField(blank=True, null=True),
        ),
        migrations.AddField(
            model_name='program',
            name='program_image',
            field=sorl.thumbnail.fields.ImageField(
              null=True,
              upload_to='program_images'),
        ),
    ]
