Hi Ken I skipped this include and combined shift-admin.html with shift-layout-admin.html. In the ongoing development proces I noticed this was not necessary anymore.
{% include shift.status.template_admin %}
shift-layout-admin.html now look slike this:
{% extends "base.html" %}
{% block shift-layout-admin %}
{% load static %}
<p>Admin</p>
<div class="m20"><!--START PAGE-->
{% for week in weeks %}
<div class="weeknr">
<h1>Week {{ week.week_number }}</h1>
<div class="grid-container shifts">
{% for day in week.days %}
<div class="weekday day{{ day.weekday }}">
<div class="dayheader day{{ day.weekday }}">{{ day.start_date|date:'l j M Y' }}</div>
<!--START SHIFT-->
{% for shift in day.shifts %}
<div id="record-{{ shift.id }}" class="card {{ shift.status.color_admin|safe }}"
onclick="{{ shift.status.onclick_admin|safe }}('{{ shift.id }}')">
<div class="inverse container-card">
<div class="date-card"><b>{{ shift.start_date|date:'D j M Y' }}</b></div>
<div class="time-card">{{ shift.start_time }} - {{ shift.end_time }}</div>
</div>
<div><b>{{ shift.function }}</b> | {{ shift.shift_title }}</div>
<div><i>{{ shift.user.first_name }} {{ shift.user.last_name }},
<b>{{ shift.user.Function_short }}</b></i></div>
<div class="flex-container sb">
<div>{{ shift.site.Short_value }} - {{ shift.site }}</div>
</div>
<div class="shiftid">{{ shift.id }}</div>
</div>
{% endfor %}
<!--END SHIFT-->
</div>
{% endfor %}
</div>
</div>
{% endfor %}
</div><!--END PAGE-->
{% endblock %}
No problems anymore. My guess is that the include proces took to much work from the server!?