from django.core.management.base import NoArgsCommand

from webhooks.models import Webhook


class Command(NoArgsCommand):
    help = 'Register all created Shopify webhooks'

    def handle_noargs(self, **options):
        Webhook.objects.register()

Add a management command to register webhooks
Add a management command to register webhooks
