MCPcopy
hub / github.com/django/django / setup_proxy

Method setup_proxy

django/db/models/options.py:380–387  ·  view source on GitHub ↗

Do the internal setup so that the current model is a proxy for "target".

(self, target)

Source from the content-addressed store, hash-verified

378 field.serialize = False
379
380 def setup_proxy(self, target):
381 """
382 Do the internal setup so that the current model is a proxy for
383 "target".
384 """
385 self.pk = target._meta.pk
386 self.proxy_for_model = target
387 self.db_table = target._meta.db_table
388
389 def __repr__(self):
390 return "<Options for %s>" % self.object_name

Callers 1

__new__Method · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected