Skip to content

Commit

Permalink
Fixed django#373 - Remove comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
csirmazbendeguz committed Aug 3, 2024
1 parent acbb1b8 commit 136ca1b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion django/db/backends/sqlite3/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions django/db/models/fields/related_lookups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit 136ca1b

Please sign in to comment.