Revert "fixes Save with update_fields did not affect any rows"

This reverts commit c6d282fce27d23317d2649ccf00b75799dad1a86.

This didn't fix the underlying issue. The issue is that the inventory
object may have been deleted by the time save is called.
This commit is contained in:
Chris Meyers 2016-07-07 11:59:09 -04:00
parent 9357850718
commit 735a75729f

View File

@ -309,8 +309,7 @@ class Inventory(CommonModel, ResourceMixin):
else:
computed_fields.pop(field)
if computed_fields:
if len(computed_fields) > 0:
iobj.save(update_fields=computed_fields.keys())
iobj.save(update_fields=computed_fields.keys())
logger.debug("Finished updating inventory computed fields")
@property