summaryrefslogtreecommitdiff
path: root/gstudio/admin
diff options
context:
space:
mode:
Diffstat (limited to 'gstudio/admin')
-rw-r--r--gstudio/admin/attribute.py7
-rw-r--r--gstudio/admin/relation.py2
2 files changed, 5 insertions, 4 deletions
diff --git a/gstudio/admin/attribute.py b/gstudio/admin/attribute.py
index 7a34cb8e..31266c43 100644
--- a/gstudio/admin/attribute.py
+++ b/gstudio/admin/attribute.py
@@ -1,4 +1,4 @@
-"""MetatypeAdmin for Gstudio"""
+"""AttributeAdmin for Gstudio"""
from django.contrib import admin
from django.core.urlresolvers import NoReverseMatch
from django.utils.translation import ugettext_lazy as _
@@ -9,13 +9,14 @@ import reversion
from django.template.defaultfilters import slugify
class AttributeAdmin(reversion.VersionAdmin):
- fieldsets=((_('Attribute'),{'fields': ('subject','subject_scope','attributetype','attributetype_scope','svalue','value_scope','last_update','creation_date')}),
+ fieldsets=((_('Attribute'),{'fields': ('attributetype','attributetype_scope','subject','subject_scope','svalue','value_scope')}),
)
+
class Media:
- js = ("gstudio/js/gstudiojs.js",)
+ js = ("gstudio/js/gstudio.js",)
def save_model(self, request, attribute, form, change):
attribute.title = attribute.composed_sentence
diff --git a/gstudio/admin/relation.py b/gstudio/admin/relation.py
index 3d2f2e4d..8f112ef4 100644
--- a/gstudio/admin/relation.py
+++ b/gstudio/admin/relation.py
@@ -8,7 +8,7 @@ import reversion
from django.template.defaultfilters import slugify
class RelationAdmin(reversion.VersionAdmin):
- fieldsets=((_('Relation'),{'fields': ('relationtype','relationtype_scope','left_subject' ,'left_subject_scope','right_subject','right_subject_scope','last_update','creation_date')}),
+ fieldsets=((_('Relation'),{'fields': ('relationtype','relationtype_scope','left_subject' ,'left_subject_scope','right_subject','right_subject_scope')}),
)