pinax / symposion

a Django project for conference websites
BSD 3-Clause "New" or "Revised" License
299 stars 147 forks source link

Give SlotKind a property to indicate whether it is a presentation #74

Open codersquid opened 9 years ago

codersquid commented 9 years ago

SlotKinds represent types of things on a schedule, some of which have presentations attached as content, some of which do not. In the pinax-symposion-project the schedule grid only renders a presentation if the slot.kind.label is 'talk' or 'tutorial', which leads to issues like https://github.com/pydata/conf_site/issues/68

Back when I was working on SciPy 2014, we forked symposion and changed SlotKind to add presentation = models.BooleanField(default=True, help_text="Whether or not this slot is a presentation")

so that we could change the template conditional to {% if slot.kind.presentation %} from {% if slot.kind.label == "talk" or slot.kind.label == "tutorial" %} (see _grid.html L16)

miurahr commented 9 years ago

:+1: lunch and coffee breaks are important schedule slot! It's modification should be merged.