slight bugfix for /edit_quest
This commit is contained in:
parent
423acc7077
commit
7874151f32
|
@ -28,8 +28,8 @@
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Live time:</td>
|
<td>Live time:</td>
|
||||||
<td><input type="date" name="live_date" id="live_date" value="{{ localtime(quest.live_time).strftime('%Y-%m-%d') }}"></td>
|
<td><input type="date" name="live_date" id="live_date" value="{% if quest.live_time %}{{ localtime(quest.live_time).strftime('%Y-%m-%d') }}{% endif %}"></td>
|
||||||
<td><input type="time" name="live_time" id="live_time" step="60" value="{{ localtime(quest.live_time).strftime('%H:%M:%S') }}"></td>
|
<td><input type="time" name="live_time" id="live_time" step="60" value="{% if quest.live_time %}{{ localtime(quest.live_time).strftime('%H:%M:%S') }}{% endif %}"></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<input type="hidden" name="timezone" id="timezone">
|
<input type="hidden" name="timezone" id="timezone">
|
||||||
|
|
|
@ -49,7 +49,7 @@ def quest(request, quest_id, page_num='0'):
|
||||||
return render(request, 'quest/quest.html', context)
|
return render(request, 'quest/quest.html', context)
|
||||||
|
|
||||||
|
|
||||||
def edit_quest(request, quest_id, page_num=1):
|
def edit_quest(request, quest_id, page_num='0'):
|
||||||
"""
|
"""
|
||||||
Edit quest page. Only available to the QM.
|
Edit quest page. Only available to the QM.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user