summaryrefslogtreecommitdiff
path: root/gstudio/admin/attribute_bigintegerfield.py
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/admin/attribute_bigintegerfield.py')
-rw-r--r--gstudio/admin/attribute_bigintegerfield.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/gstudio/admin/attribute_bigintegerfield.py b/gstudio/admin/attribute_bigintegerfield.py
index 53085fb1..277623f8 100644
--- a/gstudio/admin/attribute_bigintegerfield.py
+++ b/gstudio/admin/attribute_bigintegerfield.py
@@ -1,9 +1,13 @@
from django.contrib import admin
from django.core.urlresolvers import NoReverseMatch
from django.utils.translation import ugettext_lazy as _
+from gstudio.settings import GSTUDIO_VERSIONING
from gstudio.admin.forms import AttributeBigIntegerFieldAdminForm
import reversion
-
-class AttributeBigIntegerFieldAdmin(reversion.VersionAdmin):
+if GSTUDIO_VERSIONING == True:
+ parent_class = reversion.VersionAdmin
+else:
+ parent_class = admin.ModelAdmin
+class AttributeBigIntegerFieldAdmin(parent_class):
pass