Pass User / SUPERUSER - On Call Method

Using .sudo()

Probuse Admin

Syntax:

  • OBJECT.sudo().METHOD()

  • OBJECT.sudo().field

  • self.sudo().METHOD()

  • self.sudo().field  


Please note that default user will be SUPERUSER, If you are not passing specific user under sudo method.