Do not copy notes when cloning session
Django CI/CD / build-and-push (push) Blocked by required conditions Details
Django CI/CD / test (push) Has been cancelled Details

This commit is contained in:
Lukáš Kucharczyk 2024-01-14 13:05:02 +01:00
parent 2d8eb32e90
commit d1f970b8bb
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 # set new data
session.timestamp_start = timezone.now() session.timestamp_start = timezone.now()
session.timestamp_end = None session.timestamp_end = None
session.note = None
session.save() session.save()
if request.htmx: if request.htmx:
context = {"session": session} context = {"session": session}