Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
csirmazbendeguz committed Mar 28, 2024
1 parent 49466df commit 8a99d05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 0 additions & 3 deletions django/db/models/fields/composite.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ def __iter__(self):
def cached_col(self):
return Cols(self.model._meta.db_table, self.fields, self)

def get_col(self, alias, output_field=None):
return self.cached_col

def get_lookup(self, lookup_name):
if lookup_name == "exact":
return TupleExact
Expand Down
3 changes: 2 additions & 1 deletion tests/composite_pk/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,8 @@ def test_save_comment(self):
f'AND "{c}"."id" = {self.comment.id})',
)

def test_bulk_update_comments(self):
@unittest.skipUnless(connection.vendor == "sqlite", "SQLite specific test")
def test_bulk_update_comments_in_sqlite(self):
c = Comment._meta.db_table
user_1 = User.objects.create(pk=(self.tenant.id, 1352))
user_2 = User.objects.create(pk=(self.tenant.id, 9314))
Expand Down

0 comments on commit 8a99d05

Please sign in to comment.