I want to replace the next expression with something simpler but i’m not sure what my changes impli?
if not (self.permission_index_link == 0) \
or not (self.permission_index_link == 8):
with
if not self.permission_index_link == (0,8):
Is this what you are looking for? code will run if
self.permission_index_linkis not 0 or 8.