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

def setup_proxy(self, target):

    self.pk = target._meta.pk
    self.proxy_for_model = target
    self.db_table = target._meta.db_table
