From 136ca1beeea0dcdd94e8b5b84002940d5aba82d4 Mon Sep 17 00:00:00 2001 From: Bendeguz Csirmaz Date: Sat, 3 Aug 2024 20:20:35 +0800 Subject: [PATCH] Fixed #373 - Remove comments. --- django/db/backends/sqlite3/schema.py | 1 - django/db/models/fields/related_lookups.py | 4 ---- 2 files changed, 5 deletions(-) diff --git a/django/db/backends/sqlite3/schema.py b/django/db/backends/sqlite3/schema.py index bcbd304b836e..6da98522822f 100644 --- a/django/db/backends/sqlite3/schema.py +++ b/django/db/backends/sqlite3/schema.py @@ -105,7 +105,6 @@ def is_self_referential(f): for f in model._meta.local_concrete_fields } - # Copy the CompositePrimaryKey to the new table. # Since CompositePrimaryKey is not a concrete field (column is None), # it's not copied by default. pk = model._meta.pk diff --git a/django/db/models/fields/related_lookups.py b/django/db/models/fields/related_lookups.py index 935d0b5d5d0e..3a72b369e8a5 100644 --- a/django/db/models/fields/related_lookups.py +++ b/django/db/models/fields/related_lookups.py @@ -77,10 +77,6 @@ def get_prep_lookup(self): def as_sql(self, compiler, connection): if isinstance(self.lhs, ColPairs): - # For multicolumn lookups we need to build a multicolumn where clause. - # This clause is either a SubqueryConstraint (for values that need - # to be compiled to SQL) or an OR-combined list of - # (col1 = val1 AND col2 = val2 AND ...) clauses. from django.db.models.sql.where import SubqueryConstraint if self.rhs_is_direct_value():