diff options
author | Anuja <anujag@anujag-Latitude-D630.(none)> | 2012-04-20 11:04:23 +0530 |
---|---|---|
committer | Anuja <anujag@anujag-Latitude-D630.(none)> | 2012-04-20 11:04:23 +0530 |
commit | a90f71c204dcef6931fbb680026fb29df900cf3b (patch) | |
tree | f1f769ec6b7d92b936cf42da2a6586adfb2c3bed /gstudio/admin/relation.py | |
parent | 39e96894e6df7c0a1c3bf58b37d5b3c65a3f2e3f (diff) | |
download | gnowsys-a90f71c204dcef6931fbb680026fb29df900cf3b.tar.gz |
Added Filter for Admin -Relation form
Diffstat (limited to 'gstudio/admin/relation.py')
-rw-r--r-- | gstudio/admin/relation.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gstudio/admin/relation.py b/gstudio/admin/relation.py index 04b4e8b..688ad6e 100644 --- a/gstudio/admin/relation.py +++ b/gstudio/admin/relation.py @@ -7,6 +7,9 @@ from gstudio.admin.forms import RelationAdminForm import reversion class RelationAdmin(reversion.VersionAdmin): + fieldsets=((_('Relation'),{'fields': ('title','last_update','creation_date','relationtype_scope','relationtype','left_subject_scope','left_subject' ,'right_subject_scope','right_subject')}), + +) def save_model(self, request, relation, form, change): relation.title = relation.composed_sentence relation.save() |