Fix some lint

This commit is contained in:
Bill Nottingham 2020-01-20 17:15:27 -05:00
parent 8b10da9589
commit 4e46d5d7cd
2 changed files with 1 additions and 2 deletions

View File

@ -4,7 +4,6 @@ import traceback
from queue import Empty as QueueEmpty
from django.utils.timezone import now as tz_now
from django.conf import settings
from django.db import DatabaseError, OperationalError, connection as django_connection
from django.db.utils import InterfaceError, InternalError, IntegrityError

View File

@ -842,7 +842,7 @@ class UnifiedJob(PolymorphicModel, PasswordFieldsModel, CommonModelNameNotUnique
update_fields.append('unified_job_template')
if self.cancel_flag and not self.canceled_on:
# Record the 'canceled' time.
# Record the 'canceled' time.
self.canceled_on = now()
if 'canceled_on' not in update_fields:
update_fields.append('canceled_on')