mirror of
https://github.com/ansible/awx.git
synced 2026-04-06 02:29:21 -02:30
AC-1040 Unified jobs updates to get unit tests to pass (hopefully).
This commit is contained in:
@@ -58,12 +58,12 @@ class ActivityStreamBase(models.Model):
|
||||
# For compatibility with Django 1.4.x, attempt to handle any calls to
|
||||
# save that pass update_fields.
|
||||
try:
|
||||
super(ActivityStream, self).save(*args, **kwargs)
|
||||
super(ActivityStreamBase, self).save(*args, **kwargs)
|
||||
except TypeError:
|
||||
if 'update_fields' not in kwargs:
|
||||
raise
|
||||
kwargs.pop('update_fields')
|
||||
super(ActivityStream, self).save(*args, **kwargs)
|
||||
super(ActivityStreamBase, self).save(*args, **kwargs)
|
||||
|
||||
|
||||
if getattr(settings, 'UNIFIED_JOBS_STEP') == 0:
|
||||
|
||||
Reference in New Issue
Block a user