Add a waffle, for flipping and switching

This commit is contained in:
James Polley 2018-01-11 02:45:43 +11:00
parent b6af9e27d4
commit 54f53cd2c6
3 changed files with 21 additions and 15 deletions

View file

@ -162,6 +162,7 @@ MIDDLEWARE_CLASSES = [
"django.contrib.messages.middleware.MessageMiddleware",
"debug_toolbar.middleware.DebugToolbarMiddleware",
"reversion.middleware.RevisionMiddleware",
"waffle.middleware.WaffleMiddleware",
"django.middleware.clickjacking.XFrameOptionsMiddleware",
"django.contrib.flatpages.middleware.FlatpageFallbackMiddleware",
'pinaxcon.monkey_patch.MonkeyPatchMiddleware',
@ -227,8 +228,9 @@ INSTALLED_APPS = [
"jquery",
"djangoformsetjs",
# testing
# testing and rollout
"django_nose",
"waffle",
]
DEBUG_TOOLBAR_PANELS = [

View file

@ -1,4 +1,5 @@
{% load lca2018_tags %}
{% load waffle_tags %}
<table class="calendar table table-bordered">
<thead>
<tr>
@ -35,6 +36,7 @@
<span class="speaker">
{{ slot.content.speakers|join:", " }}
</span>
{% flag "session_chair" %}
{% if slot.sessions %}
<div>
{% for session in slot.sessions.all %}
@ -49,6 +51,7 @@
{% endfor %}
</div>
{% endif %}
{% endflag %}
{% endif %}
{% elif slot.kind.label == "shortbreak" %}
{% else %}

View file

@ -42,3 +42,4 @@ pinax-stripe==3.2.1
requests>=2.11.1
stripe==1.38.0
django-waffle>=0.12.0