from django.apps import AppConfig
from django.db.models.signals import post_migrate


def create_groups(**kwargs):
    from django.contrib.auth.models import Group
    Group.objects.get_or_create(name="ContentModerators")


class BlogConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'blog'
    
    def ready(self):
        post_migrate.connect(create_groups, sender=self)
        from .models import get_main_other_category
        post_migrate.connect(get_main_other_category, sender=self)

746f019e444ce054e5a042955170b14100ee0efa
<mask token>


class BlogConfig(AppConfig):
    <mask token>
    <mask token>

    def ready(self):
        post_migrate.connect(create_groups, sender=self)
        from .models import get_main_other_category
        post_migrate.connect(get_main_other_category, sender=self)

<mask token>


class BlogConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'blog'

    def ready(self):
        post_migrate.connect(create_groups, sender=self)
        from .models import get_main_other_category
        post_migrate.connect(get_main_other_category, sender=self)

<mask token>


def create_groups(**kwargs):
    from django.contrib.auth.models import Group
    Group.objects.get_or_create(name='ContentModerators')


class BlogConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'blog'

    def ready(self):
        post_migrate.connect(create_groups, sender=self)
        from .models import get_main_other_category
        post_migrate.connect(get_main_other_category, sender=self)

from django.apps import AppConfig
from django.db.models.signals import post_migrate


def create_groups(**kwargs):
    from django.contrib.auth.models import Group
    Group.objects.get_or_create(name='ContentModerators')


class BlogConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'blog'

    def ready(self):
        post_migrate.connect(create_groups, sender=self)
        from .models import get_main_other_category
        post_migrate.connect(get_main_other_category, sender=self)

from django.apps import AppConfig
from django.db.models.signals import post_migrate


def create_groups(**kwargs):
    from django.contrib.auth.models import Group
    Group.objects.get_or_create(name="ContentModerators")


class BlogConfig(AppConfig):
    default_auto_field = 'django.db.models.BigAutoField'
    name = 'blog'
    
    def ready(self):
        post_migrate.connect(create_groups, sender=self)
        from .models import get_main_other_category
        post_migrate.connect(get_main_other_category, sender=self)
