Skip to Content
Menú
This question has been flagged
1 Respondre
4941 Vistes

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
Best Answer

 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 ..

Related Posts Respostes Vistes Activitat
0
de set. 19
98
1
de jul. 17
4132
4
d’ag. 16
8329
1
de març 16
4975
2
de març 16
7221