Do the internal setup so that the current model is a proxy for "target".
(self, target)
| 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 |