Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Uses django-reversion only if reversion is in INSTALLED_APPS.

  • Loading branch information...
commit 4ab104ec2a537a1a54e799ab79f136c9e2b1e238 1 parent 6500e49
@BertrandBordage authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 terms/
6 terms/
@@ -3,10 +3,10 @@
from django.contrib.admin import site
from .models import Term
from .forms import TermForm
+from django.conf import settings
+from django.contrib.admin import ModelAdmin
+if 'reversion' in settings.INSTALLED_APPS:
from reversion import VersionAdmin as ModelAdmin
-except ImportError:
- from django.contrib.admin import ModelAdmin
class TermAdmin(ModelAdmin):
Please sign in to comment.
Something went wrong with that request. Please try again.