call fill_changes_cache on get_created_pks

This commit is contained in:
Laura Klünder 2017-06-27 19:09:06 +02:00
parent 557242d3fe
commit ffe31dcd81

View file

@ -235,6 +235,7 @@ class ChangeSet(models.Model):
"""
Returns a set with the primary keys of created objects from this model
"""
self.fill_changes_cache()
if issubclass(model, ModelWrapper):
model = model._obj
return set(self.created_objects.get(model, {}).keys())