summaryrefslogtreecommitdiff
path: root/gstudio/admin/attribute_charfield.py
blob: 6f41aa4e3a15409caa87bc22e4f54078b4e42741 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 AttributeCharFieldAdminForm
import reversion
if GSTUDIO_VERSIONING == True:
    parent_class = reversion.VersionAdmin
else:
    parent_class = admin.ModelAdmin 

class AttributeCharFieldAdmin(parent_class):
    pass