File tree Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Expand file tree Collapse file tree 2 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -426,7 +426,6 @@ def is_field_transition_method(attr):
426426 attr ._django_fsm .field in [self , self .name ]
427427 or (
428428 isinstance (attr ._django_fsm .field , Field )
429- and issubclass (self .model , attr ._django_fsm .field .model )
430429 and attr ._django_fsm .field .name == self .name
431430 and attr ._django_fsm .field .creation_counter == self .creation_counter
432431 )
Original file line number Diff line number Diff line change @@ -15,6 +15,17 @@ def publish(self):
1515 pass
1616
1717
18+ class AnotherFromAbstractModel (BaseAbstractModel ):
19+ """
20+ This class exists to trigger a regression when multiple concrete classes
21+ inherit from a shared abstract class (example: BaseAbstractModel).
22+ Don't try to remove it.
23+ """
24+ @transition (field = "state" , source = "published" , target = "sticked" )
25+ def stick (self ):
26+ pass
27+
28+
1829class InheritedFromAbstractModel (BaseAbstractModel ):
1930 @transition (field = "state" , source = "published" , target = "sticked" )
2031 def stick (self ):
You can’t perform that action at this time.
0 commit comments