disconnect post_save signal until #229 is fixed

This commit is contained in:
Thomas Steen Rasmussen 2020-03-05 14:41:32 +01:00
parent c52bf300ff
commit 207caebc94

View file

@ -29,6 +29,7 @@ from program.models import (
EventType,
Speaker,
)
from program.signal_handlers import eventinstance_post_save
from rideshare.models import Ride
from shop.models import Order, Product, ProductCategory
from sponsors.models import Sponsor, SponsorTier
@ -937,6 +938,7 @@ class Command(BaseCommand):
return speakers
def create_camp_scheduling(self, camp, events, locations):
post_save.disconnect(receiver=eventinstance_post_save, sender=EventInstance)
year = camp.camp.lower.year
self.output("Creating eventinstances for {}...".format(year))
EventInstance.objects.create(