removed debugging prints and updated Presentation field name

This commit is contained in:
James Tauber 2012-09-20 21:11:49 -04:00
parent d02e7f83c6
commit 72620244ea

View file

@ -308,7 +308,6 @@ class ResultNotification(models.Model):
def promote_proposal(proposal):
print "promote", proposal
if hasattr(proposal, "presentation") and proposal.presentation:
# already promoted
presentation = proposal.presentation
@ -319,7 +318,7 @@ def promote_proposal(proposal):
abstract = proposal.abstract,
speaker = proposal.speaker,
section = proposal.section,
_proposal = proposal,
proposal_base = proposal,
)
presentation.save()
for speaker in proposal.additional_speakers.all():
@ -330,7 +329,6 @@ def promote_proposal(proposal):
def unpromote_proposal(proposal):
print "unpromote"
if hasattr(proposal, "presentation") and proposal.presentation:
proposal.presentation.delete()