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/views | |
parent | 546cfb06395189d476c53c1f059013dc8d51a8b8 (diff) | |
download | gnowsys-eebf47e459a51288494ca2a3c8ae19a0ffbf4eac.tar.gz |
Modified Relation and Attribute admin forms
Diffstat (limited to 'gstudio/views')
-rw-r--r-- | gstudio/views/ajaxviews.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gstudio/views/ajaxviews.py b/gstudio/views/ajaxviews.py index a909db2..8fbb6e0 100644 --- a/gstudio/views/ajaxviews.py +++ b/gstudio/views/ajaxviews.py @@ -308,12 +308,10 @@ def selectionlist_UP(obj): membs=eachchild.objecttypes.all() def selectionlist_OB(obj): global rlist - - obs=Gbobject.objects.filter(title=obj) + obs=Objecttype.objects.get(title=obj) #Get all members of OB - if obs: - obs=Gbobject.objects.get(title=obj) - rlist=additemdict(rlist,obs) + for each in obs.member_objects.all(): + rlist=additemdict(rlist,each) return rlist |