[issue14373] C implementation of functools.lru_cache
Tim Graham
report at bugs.python.org
Sat Jun 6 22:30:52 CEST 2015
Tim Graham added the comment:
This changed caused a problem in Django's test suite (bisected to 0d0989359bbb0).
File "/home/tim/code/django/django/db/models/options.py", line 709, in _populate_directed_relation_graph
all_models = self.apps.get_models(include_auto_created=True)
TypeError: get_models() missing 1 required positional argument: 'self'
The get_models() method is decorated with @lru_cache.lru_cache(maxsize=None)
https://github.com/django/django/blob/c2b4967e76fd671e6199e4dd54d2a2c1f096b8eb/django/apps/registry.py#L157-L179
----------
nosy: +Tim.Graham
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14373>
_______________________________________
More information about the Python-bugs-list
mailing list