from django.db.models.signals import post_migrate

# pylint: disable=no-name-in-module
from oscar.apps.shipping import apps as oscar

from .signals import create_shipping_event


class ShippingConfig(oscar.ShippingConfig):
    name = "ocyan.plugin.oscar_shipping.shipping"

    def ready(self):
        post_migrate.connect(create_shipping_event, sender=self)
