Changeset 345 in main


Ignore:
Timestamp:
09/28/11 08:12:36 (8 years ago)
Author:
pcosquer
Message:

fix empty description textarea while editing a group

Location:
trunk/openPLM/plmapp
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/openPLM/plmapp/controllers/base.py

    r344 r345  
    130130    def __init__(self, obj, user): 
    131131        self.object = obj 
     132        self.form_instance = obj 
    132133        self._user = user 
    133134        # variable to store attribute changes 
  • trunk/openPLM/plmapp/controllers/group.py

    r344 r345  
    5959        super(GroupController, self).__init__(obj, user) 
    6060        self.group_info = models.GroupInfo.objects.get(group=obj) 
     61        self.form_instance = self.group_info 
    6162     
    6263    def __setattr__(self, attr, value): 
  • trunk/openPLM/plmapp/views/main.py

    r342 r345  
    838838            return HttpResponseRedirect(obj.plmobject_url) 
    839839    else: 
    840         modification_form = get_modification_form(cls, instance=obj.object) 
     840        modification_form = get_modification_form(cls, instance=obj.form_instance) 
    841841    request.session.update(request_dict) 
    842842    ctx.update({'modification_form': modification_form, 
Note: See TracChangeset for help on using the changeset viewer.