def deferred_class_factory(model, attrs):
 class Meta:
  proxy = True
  app_label = model._meta.app_label
 name = (u'%s_Deferred_%s' % (model.__name__, u'_'.join(sorted(list(attrs)))))
 name = util.truncate_name(name, 80, 32)
 overrides = dict([(attr, DeferredAttribute(attr, model)) for attr in attrs])
 overrides[u'Meta'] = Meta
 overrides[u'__module__'] = model.__module__
 overrides[u'_deferred'] = True
 return type(str(name), (model,), overrides)

def deferred_class_factory ( model , attrs ) : class Meta : proxy = True app_label = model . _meta . app_label name = ( u'%s_Deferred_%s' % ( model . __name__ , u'_' . join ( sorted ( list ( attrs ) ) ) ) ) name = util . truncate_name ( name , 80 , 32 ) overrides = dict ( [ ( attr , DeferredAttribute ( attr , model ) ) for attr in attrs ] ) overrides [ u'Meta' ] = Meta overrides [ u'__module__' ] = model . __module__ overrides [ u'_deferred' ] = True return type ( str ( name ) , ( model , ) , overrides )
returns a class object that is a copy of "model" with the specified "attrs" being replaced with deferredattribute objects .