﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27065	Deferred fields not passed to inherited models' __class__.__dict__	Jarek Glowacki	nobody	"Possibly a regression, possibly me misunderstanding how this should now work in 1.10.

{{{
class A(models.Model):
    name = models.CharField(max_length=20)
    addy = models.CharField(max_length=200)


class B(A):
    name2 = models.CharField(max_length=20)
}}}


Calling:
{{{
b = B.objects.only('name').first()
}}}
we expect `name2` and `addy` to get deferred. Calling `b.get_deferred_fields()`, we get both these field names returned as expected. 

However, inspecting `b.__class__.__dict__`, we see that only the `DeferredAttribute` for `name2` is available. To get the one for `addy`, we need to consult `b`'s parent. This was not the case in 1.9.

See my [https://github.com/carljm/django-model-utils/pull/233 PR] to django-model-utils for context.
"	Bug	closed	Database layer (models, ORM)	1.10	Normal	invalid	defer only inherited DeferredAttribute		Unreviewed	0	0	0	0	0	0
