Adds “unpublish” option to presentations (to temporarily hide from the schedule and from view by non-staff)

This commit is contained in:
Christopher Neugebauer 2016-09-18 10:45:42 +10:00
parent 5caedcc09f
commit 3b4a51e6d4
2 changed files with 24 additions and 0 deletions

View 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'),
),
]

View file

@ -190,6 +190,10 @@ class Presentation(models.Model):
speaker = models.ForeignKey(Speaker, related_name="presentations", verbose_name=_("Speaker")) speaker = models.ForeignKey(Speaker, related_name="presentations", verbose_name=_("Speaker"))
additional_speakers = models.ManyToManyField(Speaker, related_name="copresentations", additional_speakers = models.ManyToManyField(Speaker, related_name="copresentations",
blank=True, verbose_name=_("Additional speakers")) blank=True, verbose_name=_("Additional speakers"))
unpublish = models.BooleanField(
default=False,
verbose_name=_("Do not publish"),
)
cancelled = models.BooleanField(default=False, verbose_name=_("Cancelled")) cancelled = models.BooleanField(default=False, verbose_name=_("Cancelled"))
proposal_base = models.OneToOneField(ProposalBase, related_name="presentation", verbose_name=_("Proposal base")) proposal_base = models.OneToOneField(ProposalBase, related_name="presentation", verbose_name=_("Proposal base"))
section = models.ForeignKey(Section, related_name="presentations", verbose_name=_("Section")) section = models.ForeignKey(Section, related_name="presentations", verbose_name=_("Section"))