'Check that a select_for_update sets the transaction to be
dirty when executed under txn management. Setting the txn dirty
means that it will be either committed or rolled back by Django,
which will release any locks held by the SELECT FOR UPDATE.'

@skipUnlessDBFeature('has_select_for_update')
def test_transaction_dirty_managed(self):

    people = list(Person.objects.select_for_update())
    self.assertTrue(transaction.is_dirty())
