From 1202997a0d33ae7bd13b4bb6b5eec9a6c676ea39 Mon Sep 17 00:00:00 2001 From: Luke Hatcher Date: Wed, 19 Sep 2012 01:36:35 -0400 Subject: [PATCH] guard against no schedule app installed --- symposion/reviews/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/symposion/reviews/models.py b/symposion/reviews/models.py index c03a1388..0ddfa4b3 100644 --- a/symposion/reviews/models.py +++ b/symposion/reviews/models.py @@ -336,7 +336,7 @@ def unpromote_proposal(proposal): def accepted_proposal(sender, instance=None, **kwargs): - if instance is None: + if instance is None or not hasattr(instance, "presentation"): return if instance.status == "accepted": promote_proposal(instance.proposal)