Remove cruft

This commit is contained in:
Lukáš Kucharczyk 2023-01-05 22:09:21 +01:00
parent f2b08cd1cd
commit bedfbb7f31
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
4 changed files with 3 additions and 28 deletions

View File

@ -6,7 +6,7 @@ RUN npm install && \
FROM python:3.10-slim-bullseye
ENV VERSION_NUMBER 0.1.0-40-g5ad0e52
ENV VERSION_NUMBER 0.1.0-41-gf2b08cd
ENV PROD 1
RUN useradd --create-home --uid 1000 timetracker

View File

@ -1,13 +0,0 @@
{% extends 'base.html' %}
{% block title %}Add New Purchase{% endblock title %}
{% block content %}
<form method="POST" enctype="multipart/form-data" class="mx-auto">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Submit">
</form>
{% endblock content %}

View File

@ -1,13 +0,0 @@
{% extends 'base.html' %}
{% block title %}Add New Session{% endblock title %}
{% block content %}
<form method="POST" enctype="multipart/form-data" class="mx-auto">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="Submit">
</form>
{% endblock content %}

View File

@ -27,8 +27,9 @@ def add_session(request):
form.save()
return redirect("list_sessions")
context["title"] = "Add New Session"
context["form"] = form
return render(request, "add_session.html", context)
return render(request, "add.html", context)
def update_session(request, session_id=None):