#17876: get_klass_info should handle proxy models and with select_related ----------------------------------------------+------------------------ Reporter: milosu | Owner: nobody Type: Bug | Status: new Component: Database layer (models, ORM) | Version: 1.4-beta-1 Severity: Release blocker | Keywords: Triage Stage: Unreviewed | Has patch: 1 Easy pickings: 0 | UI/UX: 0 ----------------------------------------------+------------------------ If I do not apply attached patch to django/db/models/query.py, the following test case fails:
{{{ ====================================================================== ERROR: test_defer (modeltests.defer.tests.DeferTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\Python26\lib\site- packages\django_versions\Django-1.4c1\tests\modeltests\defer\tests.py", line 149, in test_defer for obj in ChildProxy.objects.all().select_related().only('id'): File "C:\Python26\lib\site- packages\django_versions\Django-1.4c1\django\db\models\query.py", line 118, in _result_iter self._fill_cache() File "C:\Python26\lib\site- packages\django_versions\Django-1.4c1\django\db\models\query.py", line 875, in _fill_cache self._result_cache.append(self._iter.next()) File "C:\Python26\lib\site- packages\django_versions\Django-1.4c1\django\db\models\query.py", line 290, in iterator requested=requested, only_load=only_load) File "C:\Python26\lib\site- packages\django_versions\Django-1.4c1\django\db\models\query.py", line 1276, in get_klass_info load_fields.update(fields) AttributeError: 'NoneType' object has no attribute 'update' ---------------------------------------------------------------------- Ran 170 tests in 0.700s FAILED (errors=1) }}} -- Ticket URL: <https://code.djangoproject.com/ticket/17876> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.