1
0
mirror of https://github.com/django/django.git synced 2025-10-24 22:26:08 +00:00

Fixed #32951 -- Removed Query.where_class & co.

Unused since 3caf957ed5.
This commit is contained in:
Nick Pope
2021-07-20 20:38:17 +01:00
committed by Mariusz Felisiak
parent 012f38f959
commit c35b81b864
10 changed files with 29 additions and 25 deletions

View File

@@ -32,7 +32,7 @@ class ActiveTranslationField(models.ForeignObject):
"""
requires_unique_target = False
def get_extra_restriction(self, where_class, alias, related_alias):
def get_extra_restriction(self, alias, related_alias):
return ColConstraint(alias, 'lang', get_language())
def get_extra_descriptor_filter(self, instance):