From 0e9d3477ff44e6df77767774bb9fd76e837200e0 Mon Sep 17 00:00:00 2001 From: Christopher Broderick Date: Fri, 11 Apr 2025 11:38:18 +0100 Subject: [PATCH] Remove redundant default for get method on dict. --- helpdesk/views/staff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpdesk/views/staff.py b/helpdesk/views/staff.py index c9524e6c..4f6bd9bd 100644 --- a/helpdesk/views/staff.py +++ b/helpdesk/views/staff.py @@ -587,7 +587,7 @@ def get_due_date_from_form_or_ticket( """Tries to locate the due date for a ticket from the form 'due_date' parameter or the `due_date_*` paramaters. """ - due_date = form.cleaned_data.get("due_date", None) or None + due_date = form.cleaned_data.get("due_date") or None if due_date is None: due_date_year = int(form.cleaned_data.get("due_date_year", 0)) due_date_month = int(form.cleaned_data.get("due_date_month", 0))