Ticket #12163: base.py.diff

File base.py.diff, 495 bytes (added by Ryan Fugger, 15 years ago)

Set model to _meta.proxy_for_model by default for deferred

  • django/db/models/base.py

     
    361361        defers = []
    362362        pk_val = None
    363363        if self._deferred:
     364            model = self._meta.proxy_for_model
    364365            for field in self._meta.fields:
    365366                if isinstance(self.__class__.__dict__.get(field.attname),
    366367                        DeferredAttribute):
Back to Top