Skip to content

Commit

Permalink
Fix #79
Browse files Browse the repository at this point in the history
  • Loading branch information
jedie committed Aug 29, 2016
1 parent 9648937 commit 265c88a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.creole
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,8 @@ Maybe other versions are compatible, too.

== Changelog ==

* [[https://github.com/jedie/django-reversion-compare/compare/v0.7.0...v0.7.1|v0.7.1 - 29.08.2016]]:
** [[https://github.com/jedie/django-reversion-compare/issues/79|Fix #79: missing import if **ADD_REVERSION_ADMIN != True**]]
* [[https://github.com/jedie/django-reversion-compare/compare/v0.6.3...v0.7.0|v0.7.0 - 25.08.2016]]:
** [[https://github.com/jedie/django-reversion-compare/pull/76|support only django-reversion >= 2.0]] based on a contribution by [[https://github.com/jedie/django-reversion-compare/pull/73|mshannon1123]]
** remove internal **reversion_api**
Expand Down
2 changes: 1 addition & 1 deletion reversion_compare/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# coding: utf-8

__version__ = "0.7.0"
__version__ = "0.7.1"
5 changes: 2 additions & 3 deletions reversion_compare/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
from django.utils.translation import ugettext as _

from reversion.admin import VersionAdmin
from reversion.models import Revision, Version

from reversion_compare.forms import SelectDiffForm
from reversion_compare.mixins import CompareMixin, CompareMethodsMixin
Expand Down Expand Up @@ -216,12 +217,10 @@ class CompareVersionAdmin(CompareMethodsMixin, BaseCompareVersionAdmin):
expand the base class with prepared compare methods. This is the
class to inherit
"""
pass


if hasattr(settings, "ADD_REVERSION_ADMIN") and settings.ADD_REVERSION_ADMIN:
from reversion.models import Revision, Version


class RevisionAdmin(admin.ModelAdmin):
list_display = ("id", "date_created", "user", "comment")
list_display_links = ("date_created",)
Expand Down

0 comments on commit 265c88a

Please sign in to comment.