Fix an error: 'is_superuser' referenced before assignment