removed debugging prints and updated Presentation field name
This commit is contained in:
		
							parent
							
								
									d02e7f83c6
								
							
						
					
					
						commit
						72620244ea
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -308,7 +308,6 @@ class ResultNotification(models.Model): | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def promote_proposal(proposal): | def promote_proposal(proposal): | ||||||
|     print "promote", proposal |  | ||||||
|     if hasattr(proposal, "presentation") and proposal.presentation: |     if hasattr(proposal, "presentation") and proposal.presentation: | ||||||
|         # already promoted |         # already promoted | ||||||
|         presentation = proposal.presentation |         presentation = proposal.presentation | ||||||
|  | @ -319,7 +318,7 @@ def promote_proposal(proposal): | ||||||
|             abstract = proposal.abstract, |             abstract = proposal.abstract, | ||||||
|             speaker = proposal.speaker, |             speaker = proposal.speaker, | ||||||
|             section = proposal.section, |             section = proposal.section, | ||||||
|             _proposal = proposal, |             proposal_base = proposal, | ||||||
|         ) |         ) | ||||||
|         presentation.save() |         presentation.save() | ||||||
|         for speaker in proposal.additional_speakers.all(): |         for speaker in proposal.additional_speakers.all(): | ||||||
|  | @ -330,7 +329,6 @@ def promote_proposal(proposal): | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def unpromote_proposal(proposal): | def unpromote_proposal(proposal): | ||||||
|     print "unpromote" |  | ||||||
|     if hasattr(proposal, "presentation") and proposal.presentation: |     if hasattr(proposal, "presentation") and proposal.presentation: | ||||||
|         proposal.presentation.delete() |         proposal.presentation.delete() | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 James Tauber
						James Tauber