Adds “unpublish” option to presentations (to temporarily hide from the schedule and from view by non-staff)
This commit is contained in:
		
							parent
							
								
									5caedcc09f
								
							
						
					
					
						commit
						3b4a51e6d4
					
				
					 2 changed files with 24 additions and 0 deletions
				
			
		
							
								
								
									
										20
									
								
								symposion/schedule/migrations/0002_presentation_unpublish.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										20
									
								
								symposion/schedule/migrations/0002_presentation_unpublish.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,20 @@ | |||
| # -*- coding: utf-8 -*- | ||||
| # Generated by Django 1.9.7 on 2016-09-18 00:43 | ||||
| from __future__ import unicode_literals | ||||
| 
 | ||||
| from django.db import migrations, models | ||||
| 
 | ||||
| 
 | ||||
| class Migration(migrations.Migration): | ||||
| 
 | ||||
|     dependencies = [ | ||||
|         ('symposion_schedule', '0001_initial'), | ||||
|     ] | ||||
| 
 | ||||
|     operations = [ | ||||
|         migrations.AddField( | ||||
|             model_name='presentation', | ||||
|             name='unpublish', | ||||
|             field=models.BooleanField(default=False, verbose_name='Do not publish'), | ||||
|         ), | ||||
|     ] | ||||
|  | @ -190,6 +190,10 @@ class Presentation(models.Model): | |||
|     speaker = models.ForeignKey(Speaker, related_name="presentations", verbose_name=_("Speaker")) | ||||
|     additional_speakers = models.ManyToManyField(Speaker, related_name="copresentations", | ||||
|                                                  blank=True, verbose_name=_("Additional speakers")) | ||||
|     unpublish = models.BooleanField( | ||||
|         default=False, | ||||
|         verbose_name=_("Do not publish"), | ||||
|     ) | ||||
|     cancelled = models.BooleanField(default=False, verbose_name=_("Cancelled")) | ||||
|     proposal_base = models.OneToOneField(ProposalBase, related_name="presentation", verbose_name=_("Proposal base")) | ||||
|     section = models.ForeignKey(Section, related_name="presentations", verbose_name=_("Section")) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Christopher Neugebauer
						Christopher Neugebauer