hooked up presentation promotion
This commit is contained in:
		
							parent
							
								
									6d2cc584cf
								
							
						
					
					
						commit
						37c976c2f7
					
				
					 1 changed files with 20 additions and 21 deletions
				
			
		|  | @ -11,7 +11,7 @@ from django.contrib.auth.models import User | ||||||
| from markitup.fields import MarkupField | from markitup.fields import MarkupField | ||||||
| 
 | 
 | ||||||
| from symposion.proposals.models import ProposalBase | from symposion.proposals.models import ProposalBase | ||||||
| # from symposion.schedule.models import Presentation | from symposion.schedule.models import Presentation | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| class ProposalScoreExpression(object): | class ProposalScoreExpression(object): | ||||||
|  | @ -279,26 +279,25 @@ class Comment(models.Model): | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def promote_proposal(proposal): | def promote_proposal(proposal): | ||||||
|     raise NotImplementedError() |      | ||||||
|     # presentation, created = Presentation.objects.get_or_create( |     if hasattr(proposal, "presentation") and proposal.presentation: | ||||||
|     #     pk=proposal.pk, |         # already promoted | ||||||
|     #     defaults=dict( |         presentation = proposal.presentation | ||||||
|     #         title=proposal.title, |     else: | ||||||
|     #         description=proposal.description, |         presentation = Presentation( | ||||||
|     #         kind=proposal.kind, |             title = proposal.title, | ||||||
|     #         category=proposal.category, |             description = proposal.description, | ||||||
|     #         duration=proposal.duration, |             abstract = proposal.abstract, | ||||||
|     #         abstract=proposal.abstract, |             speaker = proposal.speaker, | ||||||
|     #         audience_level=proposal.audience_level, |             section = proposal.section, | ||||||
|     #         submitted=proposal.submitted, |             _proposal = proposal, | ||||||
|     #         speaker=proposal.speaker, |         ) | ||||||
|     #     ) |         presentation.save() | ||||||
|     # ) |         for speaker in proposal.additional_speakers.all(): | ||||||
|     # if created: |             presentation.additional_speakers.add(speaker) | ||||||
|     #     for speaker in proposal.additional_speakers.all(): |             presentation.save() | ||||||
|     #         presentation.additional_speakers.add(speaker) |      | ||||||
|     #         presentation.save() |     return presentation | ||||||
|     # return presentation |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def accepted_proposal(sender, instance=None, **kwargs): | def accepted_proposal(sender, instance=None, **kwargs): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 James Tauber
						James Tauber