diff options
author | Anuja <anujag@anujag-Latitude-D630.(none)> | 2012-04-26 15:45:13 +0530 |
---|---|---|
committer | Anuja <anujag@anujag-Latitude-D630.(none)> | 2012-04-26 15:45:13 +0530 |
commit | eebf47e459a51288494ca2a3c8ae19a0ffbf4eac (patch) | |
tree | d2b613abb61be9567b3fc703ad798177f9b605f0 /gstudio/admin/attribute.py | |
parent | 546cfb06395189d476c53c1f059013dc8d51a8b8 (diff) | |
download | gnowsys-eebf47e459a51288494ca2a3c8ae19a0ffbf4eac.tar.gz |
Modified Relation and Attribute admin forms
Diffstat (limited to 'gstudio/admin/attribute.py')
-rw-r--r-- | gstudio/admin/attribute.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/gstudio/admin/attribute.py b/gstudio/admin/attribute.py index 336509e..7a34cb8 100644 --- a/gstudio/admin/attribute.py +++ b/gstudio/admin/attribute.py @@ -6,15 +6,23 @@ from django.utils.html import escape from gstudio.admin.forms import AttributeAdminForm from gstudio.models import * 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')}), + +) + + class Media: js = ("gstudio/js/gstudiojs.js",) def save_model(self, request, attribute, form, change): - attribute.title = attribute.composed_attribution + attribute.title = attribute.composed_sentence + attribute.slug = slugify(attribute.title) attribute.save() + |