for a models.IntegerField I can define easily choices with
sth = models.IntegerField(choices=(
(1, 'sth1'),
(2, 'sth2'),
(3, 'sth3'),
))
. Is there any way where I can restrict the transitions from one value to another one?
For instance if the current value is '1', it can go only to '2', but if the current value is '3', it can go to '1' and '2', etc.
I need this restriction only on the admin interface. Is there anything built in for that?
Thanks.