summaryrefslogtreecommitdiff
path: root/gstudio/admin/attribute_timefield.py
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/admin/attribute_timefield.py')
-rw-r--r--gstudio/admin/attribute_timefield.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/gstudio/admin/attribute_timefield.py b/gstudio/admin/attribute_timefield.py
index 929b028e..c719082c 100644
--- a/gstudio/admin/attribute_timefield.py
+++ b/gstudio/admin/attribute_timefield.py
@@ -4,6 +4,11 @@ from django.utils.translation import ugettext_lazy as _
from gstudio.admin.forms import AttributeTimeFieldAdminForm
import reversion
+from gstudio.settings import GSTUDIO_VERSIONING
+if GSTUDIO_VERSIONING == True:
+ parent_class = reversion.VersionAdmin
+else:
+ parent_class = admin.ModelAdmin
-class AttributeTimeFieldAdmin(reversion.VersionAdmin):
+class AttributeTimeFieldAdmin(parent_class):
pass