Commit 8e76eaeb by Bridger Maxwell

IMPORTANT: Fix this. I just commented out a line that was causing trouble.

parent 96328e37
...@@ -225,6 +225,7 @@ def update_simple_plugins(instance, *args, **kwargs): ...@@ -225,6 +225,7 @@ def update_simple_plugins(instance, *args, **kwargs):
plugins to match this article revision""" plugins to match this article revision"""
if kwargs.get('created', False): if kwargs.get('created', False):
p_revisions = SimplePlugin.objects.filter(article=instance.article, deleted=False) p_revisions = SimplePlugin.objects.filter(article=instance.article, deleted=False)
p_revisions.update(revision=instance) # TODO: This was breaking things. SimplePlugin doesn't have a revision?
#p_revisions.update(revision=instance)
signals.post_save.connect(update_simple_plugins, ArticleRevision) signals.post_save.connect(update_simple_plugins, ArticleRevision)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment