

def edit_form(self, obj=None):
    form = super(LTPanel, self).edit_form(obj)
    self.local_data.basic_http_authentications = {
        
    }
    if (obj is not None):
        for auth in obj.basic_http_authentications:
            self.local_data.basic_http_authentications[auth.id] = auth.lt_password
    return form

dataset/ETHPy150Open gateway4labs/labmanager/labmanager/views/admin.py LTPanel.edit_form/original