1
0
mirror of https://github.com/django/django.git synced 2025-10-31 09:41:08 +00:00

Added test for ForeignObject.get_extra_descriptor_filter()

This commit is contained in:
Alex Hill
2015-08-03 19:44:13 +10:00
committed by Tim Graham
parent 14c1fd0730
commit b47e862d3a
2 changed files with 4 additions and 1 deletions

View File

@@ -146,7 +146,7 @@ class ActiveTranslationField(models.ForeignObject):
def get_extra_restriction(self, where_class, alias, related_alias):
return ColConstraint(alias, 'lang', get_language())
def get_extra_descriptor_filter(self):
def get_extra_descriptor_filter(self, instance):
return {'lang': get_language()}
def contribute_to_class(self, cls, name):