mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-06-19 17:18:23 +02:00
Remove redundant default for get method on dict.
This commit is contained in:
parent
db7ded2573
commit
0e9d3477ff
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user