Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Add comments `revision` compatability. #606

Closed
wants to merge 1 commit into from

2 participants

@stephenmcd
Owner

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

https://groups.google.com/group/mezzanine-users/browse_thread/thread/158fdc019dfa30d7

@stephenmcd
Owner

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/admin.py
View
12 mezzanine/generic/admin.py
@@ -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:
admin.site.register(ThreadedComment, 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.