The new KepiManager class had "find" where it should have had "filter".

trilby
Marnanel Thurman 2019-09-13 22:31:08 +01:00
rodzic b76404ea1c
commit 90d682c01c
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -28,9 +28,9 @@ class KepiManager(PolymorphicManager):
# without their f_... prefixes, and also
# transparently on ThingFields.
def find_local_only(self, *args, **kwargs):
def filter_local_only(self, *args, **kwargs):
self._adjust_kwargs_for_local_only(kwargs)
return self.find(*args, **kwargs)
return self.filter(*args, **kwargs)
def get_local_only(self, *args, **kwargs):
self._adjust_kwargs_for_local_only(kwargs)