mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +00:00
Fixed #32951 -- Removed Query.where_class & co.
Unused since 3caf957ed5.
This commit is contained in:
committed by
Mariusz Felisiak
parent
012f38f959
commit
c35b81b864
@@ -43,7 +43,7 @@ class StartsWithRelation(models.ForeignObject):
|
||||
"""
|
||||
return self.remote_field
|
||||
|
||||
def get_extra_restriction(self, where_class, alias, related_alias):
|
||||
def get_extra_restriction(self, alias, related_alias):
|
||||
to_field = self.remote_field.model._meta.get_field(self.to_fields[0])
|
||||
from_field = self.model._meta.get_field(self.from_fields[0])
|
||||
return StartsWith(to_field.get_col(alias), from_field.get_col(related_alias))
|
||||
@@ -87,7 +87,7 @@ class BrokenContainsRelation(StartsWithRelation):
|
||||
This model is designed to yield no join conditions and
|
||||
raise an exception in ``Join.as_sql()``.
|
||||
"""
|
||||
def get_extra_restriction(self, where_class, alias, related_alias):
|
||||
def get_extra_restriction(self, alias, related_alias):
|
||||
return None
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user