Skip to content
Snippets Groups Projects
Commit c32e4962 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Add missing migration for hidden plan & revert obsolete format change

parent 0a796677
No related branches found
No related tags found
1 merge request!41Introduce hidden plan
Pipeline #4043 passed
# Generated by Django 3.0.6 on 2020-05-19 20:08
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('AKModel', '0034_room_rename_field'),
]
operations = [
migrations.AddField(
model_name='event',
name='plan_hidden',
field=models.BooleanField(default=True, help_text='Hides plan for non-staff users', verbose_name='Plan Hidden'),
),
]
......@@ -2,17 +2,17 @@
{% load tags_AKPlan %}
[
{% for slot in slots %}
{% if slot.start %}
{
'title': '{{ slot.ak.name }}',
'start': '{{ slot.start | timezone:event.timezone | date:"Y-m-d H:i:s" }}',
'end': '{{ slot.end | timezone:event.timezone | date:"Y-m-d H:i:s" }}',
'resourceId': '{{ slot.room.title }}',
'backgroundColor': '{{ slot|highlight_change_colors }}',
'borderColor': '{{ slot.ak.category.color }}',
'url': '{% url 'submit:ak_detail' event_slug=event.slug pk=slot.ak.pk %}'
},
{% endif %}
{% endfor %}
{% for slot in slots %}
{% if slot.start %}
{
'title': '{{ slot.ak.name }}',
'start': '{{ slot.start | timezone:event.timezone | date:"Y-m-d H:i:s" }}',
'end': '{{ slot.end | timezone:event.timezone | date:"Y-m-d H:i:s" }}',
'resourceId': '{{ slot.room.title }}',
'backgroundColor': '{{ slot|highlight_change_colors }}',
'borderColor': '{{ slot.ak.category.color }}',
'url': '{% url 'submit:ak_detail' event_slug=event.slug pk=slot.ak.pk %}'
},
{% endif %}
{% endfor %}
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment