def cycle(self):
        self.level = str((int(self.level) + 1) % int(len(PRIORITY_LEVELS)))
        self.save()
Cycle through the states of the priority object.
dataset/ETHPy150Open rvanlaar/easy-transifex/src/transifex/transifex/addons/priorities/models.py/ResourcePriority.cycle