from __future__ import unicode_literals

from django.db import migrations


def set_about_plugin_to_hpe(apps, schema_editor):
    Plugin = apps.get_model('utils', 'Plugin')

    Plugin.objects.filter(
        name='About',
    ).update(
        homepage_element=True,
    )

class Migration(migrations.Migration):

    dependencies = [
        ('core', '0058_merge_20211005_0909'),
    ]

    operations = [
        migrations.RunPython(set_about_plugin_to_hpe, reverse_code=migrations.RunPython.noop)
    ]

from __future__ import unicode_literals

from django.db import migrations


def set_about_plugin_to_hpe(apps, schema_editor):
    Plugin = apps.get_model('utils', 'Plugin')

    Plugin.objects.filter(
        name='About',
    ).update(
        homepage_element=True,
    )

class Migration(migrations.Migration):

    dependencies = [
        ('core', '0058_merge_20211005_0909'),
        ('utils', '0023_upgrade_1_4_0'),
    ]

    operations = [
        migrations.RunPython(set_about_plugin_to_hpe, reverse_code=migrations.RunPython.noop)
    ]

Fix missing dependency on core.0059 migration
Fix missing dependency on core.0059 migration

  from __future__ import unicode_literals
  
  from django.db import migrations
  
  
  def set_about_plugin_to_hpe(apps, schema_editor):
      Plugin = apps.get_model('utils', 'Plugin')
  
      Plugin.objects.filter(
          name='About',
      ).update(
          homepage_element=True,
      )
  
  class Migration(migrations.Migration):
  
      dependencies = [
          ('core', '0058_merge_20211005_0909'),
+         ('utils', '0023_upgrade_1_4_0'),
      ]
  
      operations = [
          migrations.RunPython(set_about_plugin_to_hpe, reverse_code=migrations.RunPython.noop)
      ]
  
Fix missing dependency on core.0059 migration
## Code Before:
from __future__ import unicode_literals

from django.db import migrations


def set_about_plugin_to_hpe(apps, schema_editor):
    Plugin = apps.get_model('utils', 'Plugin')

    Plugin.objects.filter(
        name='About',
    ).update(
        homepage_element=True,
    )

class Migration(migrations.Migration):

    dependencies = [
        ('core', '0058_merge_20211005_0909'),
    ]

    operations = [
        migrations.RunPython(set_about_plugin_to_hpe, reverse_code=migrations.RunPython.noop)
    ]

## Instruction:
Fix missing dependency on core.0059 migration
## Code After:
from __future__ import unicode_literals

from django.db import migrations


def set_about_plugin_to_hpe(apps, schema_editor):
    Plugin = apps.get_model('utils', 'Plugin')

    Plugin.objects.filter(
        name='About',
    ).update(
        homepage_element=True,
    )

class Migration(migrations.Migration):

    dependencies = [
        ('core', '0058_merge_20211005_0909'),
        ('utils', '0023_upgrade_1_4_0'),
    ]

    operations = [
        migrations.RunPython(set_about_plugin_to_hpe, reverse_code=migrations.RunPython.noop)
    ]
