

def on_model_change(self, form, model):
    old_basic_http_authentications = getattr(self.local_data, 'basic_http_authentications', {
        
    })
    for authentication in model.basic_http_authentications:
        old_password = old_basic_http_authentications.get(authentication.id, None)
        model.update_password(old_password)

dataset/ETHPy150Open gateway4labs/labmanager/labmanager/views/admin.py LTPanel.on_model_change/VarMisuse@52/83 `authentication`->`model`