summaryrefslogtreecommitdiff
path: root/gstudio/admin/union.py
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/admin/union.py')
-rw-r--r--gstudio/admin/union.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/gstudio/admin/union.py b/gstudio/admin/union.py
index 08369363..d9bc092c 100644
--- a/gstudio/admin/union.py
+++ b/gstudio/admin/union.py
@@ -3,7 +3,13 @@ from django.core.urlresolvers import NoReverseMatch
from django.utils.translation import ugettext_lazy as _
from gstudio.admin.forms import UnionAdminForm
+from gstudio.settings import GSTUDIO_VERSIONING
+
import reversion
+if GSTUDIO_VERSIONING == True:
+ parent_class = reversion.VersionAdmin
+else:
+ parent_class = admin.ModelAdmin
-class UnionAdmin(reversion.VersionAdmin):
+class UnionAdmin(parent_class):
pass