Fixed #12800: TransactionManagementError in django-states1.