from django.core.management.base import BaseCommand
from django.core.management.base import CommandError
from mezzanine.conf import settings

from cartridge.shop.models import *

class Command(BaseCommand):
    help = 'Sync reservations from external hook'

    def handle(self, *args, **options):
        p = ReservableProduct.objects.all()[0]
        p.update_from_hook()


Add a manage command to sync reservations from external hook .. hard coded first product only atm (cherry picked from commit 63a80b711e1be9a6047965b8d0061b676d8c50ed)