diff options
author | Arun yadav <arunkumar5587@gmail.com> | 2012-05-09 16:46:57 +0530 |
---|---|---|
committer | Arun yadav <arunkumar5587@gmail.com> | 2012-05-09 16:46:57 +0530 |
commit | fe4a82b80954e4a4666afa71ab3161c8b824f9e9 (patch) | |
tree | 323a20001563644fead153a9debbc684a446a9c2 /gstudio/admin | |
parent | 7e02e008009c476c831d7dcda78db9bc22beb42e (diff) | |
parent | 6b77378be56f722d36459056b7d3083d1a422448 (diff) | |
download | gnowsys-fe4a82b80954e4a4666afa71ab3161c8b824f9e9.tar.gz |
merged with gn repository
Diffstat (limited to 'gstudio/admin')
-rw-r--r-- | gstudio/admin/attribute.py | 7 | ||||
-rw-r--r-- | gstudio/admin/relation.py | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/gstudio/admin/attribute.py b/gstudio/admin/attribute.py index 7a34cb8..31266c4 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 3d2f2e4..8f112ef 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')}), ) |