call fill_changes_cache on get_created_pks
This commit is contained in:
parent
557242d3fe
commit
ffe31dcd81
1 changed files with 1 additions and 0 deletions
|
@ -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())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue