guard against no schedule app installed
This commit is contained in:
parent
aad54984c5
commit
1202997a0d
1 changed files with 1 additions and 1 deletions
|
@ -336,7 +336,7 @@ def unpromote_proposal(proposal):
|
||||||
|
|
||||||
|
|
||||||
def accepted_proposal(sender, instance=None, **kwargs):
|
def accepted_proposal(sender, instance=None, **kwargs):
|
||||||
if instance is None:
|
if instance is None or not hasattr(instance, "presentation"):
|
||||||
return
|
return
|
||||||
if instance.status == "accepted":
|
if instance.status == "accepted":
|
||||||
promote_proposal(instance.proposal)
|
promote_proposal(instance.proposal)
|
||||||
|
|
Loading…
Reference in a new issue