Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


Add comments `revision` compatability. #606

wants to merge 1 commit into from

2 participants


As with #605, I've started a discussion around this on the mailing list:


Closing as per #605

@stephenmcd stephenmcd closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 20, 2013
  1. @pahaz

    Add comments `revision` compatability.

    pahaz authored
    Need merge this pull after merge stephenmcd#605
This page is out of date. Refresh to see the latest.
Showing with 12 additions and 0 deletions.
  1. +12 −0 mezzanine/generic/
12 mezzanine/generic/
@@ -31,3 +31,15 @@ def get_actions(self, request):
generic_comments = getattr(settings, "COMMENTS_APP", "") == "mezzanine.generic"
if generic_comments and not settings.COMMENTS_DISQUS_SHORTNAME:, ThreadedCommentAdmin)
+ if "reversion" in settings.INSTALLED_APPS and settings.USE_REVERSION:
+ if "reversion_compare" in settings.INSTALLED_APPS:
+ try:
+ from mezzanine.core.admin import VersionMixedAdmin
+ from reversion_compare.helpers import patch_admin
+ patch_admin(ThreadedComment, AdminClass=VersionMixedAdmin)
+ except ImportError:
+ from reversion.helpers import patch_admin
+ patch_admin(ThreadedComment)
+ else:
+ from reversion.helpers import patch_admin
+ patch_admin(ThreadedComment)
Something went wrong with that request. Please try again.