Fixed -- Removed unnecessary getattr() call in DeferredAttribute.__get__().
refresh_from_db() loads fields values.
@@ -147,7 +147,7 @@ class DeferredAttribute:
val = self._check_parent_chain(instance)
if val is None:
instance.refresh_from_db(fields=[field_name])
- val = getattr(instance, field_name)
+ else:
data[field_name] = val
return data[field_name]
