diff options
author | Kabir <kabir@gnowledge.org> | 2012-05-17 14:18:52 +0530 |
---|---|---|
committer | Kabir <kabir@gnowledge.org> | 2012-05-17 14:18:52 +0530 |
commit | ff3302db35cf7689e2abc0f52d5058c974925784 (patch) | |
tree | dd756ef832cd4ed34c8cd2484525f4eab8956b51 /gstudio/admin/attribute_bigintegerfield.py | |
parent | 33bcefd3e0a7dec7e16aa03a9133fab633e1e624 (diff) | |
download | gnowsys-ff3302db35cf7689e2abc0f52d5058c974925784.tar.gz |
Admin files with modifications for disabling versioning added
Diffstat (limited to 'gstudio/admin/attribute_bigintegerfield.py')
-rw-r--r-- | gstudio/admin/attribute_bigintegerfield.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gstudio/admin/attribute_bigintegerfield.py b/gstudio/admin/attribute_bigintegerfield.py index 53085fb..277623f 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 |