Skip to content

Commit

Permalink
Merge pull request #381 from joelarson/post_commit_signal_fix
Browse files Browse the repository at this point in the history
fixed #380: Versions passed through by reversion.post_revision_commit ha...
  • Loading branch information
etianen committed Jan 29, 2015
2 parents 04262a1 + 220bd4d commit 0b3a8f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/reversion/revisions.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,11 +490,11 @@ def save_revision(self, objects, ignore_duplicates=False, user=None, comment="",
# Save version models.
for version in new_versions:
version.revision = revision
Version.objects.using(db).bulk_create(new_versions)
version.save()
# Save the meta information.
for cls, kwargs in meta:
cls._default_manager.db_manager(db).create(revision=revision, **kwargs)
# Send the pre_revision_commit signal.
# Send the post_revision_commit signal.
post_revision_commit.send(self,
instances = ordered_objects,
revision = revision,
Expand Down

0 comments on commit 0b3a8f2

Please sign in to comment.