Fix Postgres error

This commit is contained in:
2025-08-31 10:01:42 +09:00
parent 0ef0bde5b1
commit 71b073229e
3 changed files with 71 additions and 5 deletions

View File

@ -4,6 +4,20 @@
{% block content %}
<h1>チェックポイントCSVアップロード</h1>
{% if user.is_staff %}
<div class="messagelist">
<div class="info">
<strong>スタッフユーザー:</strong> 全ステータスdraft, private, publicのイベントが表示されます。
</div>
</div>
{% else %}
<div class="messagelist">
<div class="info">
<strong>一般ユーザー:</strong> publicステータスのイベントのみが表示されます。
</div>
</div>
{% endif %}
<div class="module">
<form method="post" enctype="multipart/form-data">
{% csrf_token %}
@ -14,7 +28,7 @@
<select name="event" required>
<option value="">-- イベントを選択 --</option>
{% for event in events %}
<option value="{{ event.id }}">{{ event.event_name }}</option>
<option value="{{ event.id }}">{{ event.event_name }} ({{ event.status }})</option>
{% endfor %}
</select>
</div>