Skip to content

Commit

Permalink
fixes #255 child plugins are saved before mptt signals are fired
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Lauber committed Nov 24, 2009
1 parent 0471d78 commit d90fe7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cms/admin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,8 @@ def revert_plugins(request, version_id, obj):
current_plugins = list(CMSPlugin.objects.filter(page=page))
for plugin in cms_plugin_list:
plugin.page = page

plugin.save(no_signals=True)
for plugin in cms_plugin_list:
plugin.save()
for p in plugin_list:
if int(p.cmsplugin_ptr_id) == int(plugin.pk):
Expand Down

0 comments on commit d90fe7f

Please sign in to comment.