'Updating a field of a model subclass doesn\'t issue an UPDATE
query constrained by an inner query (#10399).'

def test_update_parent_filtering(self):

    supplier = Supplier.objects.create(name='Central    market', address='610    some    street')
    with CaptureQueriesContext(connection) as captured_queries:
        Place.objects.filter(pk=supplier.pk).update(name=supplier.name)
    expected_sql = captured_queries[0]['sql']
    with CaptureQueriesContext(connection) as captured_queries:
        supplier.save(update_fields=('name',))
    for query in captured_queries:
        sql = query['sql']
        if ('UPDATE' in sql):
            self.assertEqual(expected_sql, sql)
