diff options
Diffstat (limited to 'gstudio/admin/attribute_datefield.py')
-rw-r--r-- | gstudio/admin/attribute_datefield.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gstudio/admin/attribute_datefield.py b/gstudio/admin/attribute_datefield.py index 96195471..b62d2ca7 100644 --- a/gstudio/admin/attribute_datefield.py +++ b/gstudio/admin/attribute_datefield.py @@ -3,7 +3,12 @@ from django.core.urlresolvers import NoReverseMatch from django.utils.translation import ugettext_lazy as _ from gstudio.admin.forms import AttributeDateFieldAdminForm +from gstudio.settings import GSTUDIO_VERSIONING import reversion +if GSTUDIO_VERSIONING == True: + parent_class = reversion.VersionAdmin +else: + parent_class = admin.ModelAdmin -class AttributeDateFieldAdmin(reversion.VersionAdmin): +class AttributeDateFieldAdmin(parent_class): pass |