guard against no schedule app installed

This commit is contained in:
Luke Hatcher 2012-09-19 01:36:35 -04:00
parent aad54984c5
commit 1202997a0d

View file

@ -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)