Do not copy notes when cloning session
Django CI/CD / test (push) Successful in 1m13s Details
Django CI/CD / build-and-push (push) Successful in 1m45s Details

This commit is contained in:
Lukáš Kucharczyk 2024-01-14 13:05:02 +01:00
parent 2d8eb32e90
commit 854e3cc54a
Signed by: lukas
SSH Key Fingerprint: SHA256:vMuSwvwAvcT6htVAioMP7rzzwMQNi3roESyhv+nAxeg
1 changed files with 1 additions and 0 deletions

View File

@ -260,6 +260,7 @@ def start_session_same_as_last(request, last_session_id: int):
# set new data
session.timestamp_start = timezone.now()
session.timestamp_end = None
session.note = ""
session.save()
if request.htmx:
context = {"session": session}