Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4919 Vistas

How can i overwrite the value of "self._uid" based on special condition

Eg:- self._uid = int(my_userid) gives an error "AttributeError: can't set attribute"

Any thought on this is appreciated !..

Avatar
Descartar
Mejor respuesta

 use self.sudo(my_userid), it will set the uid value in the self .

self.sudo(my_userid)
Avatar
Descartar
Autor

Hi Prakash , Thanks for your answer , but this is not compatible with version 7 . Am actually trying to implement this small fix in version 7 . Is there any alternatives or for this .. Thanks ..

Publicaciones relacionadas Respuestas Vistas Actividad
0
sept 19
98
1
jul 17
4100
4
ago 16
8281
1
mar 16
4949
2
mar 16
7207