'Write lines for instantiation'

def instantiate(self):

    code_lines = []
    if (not self.instantiated):
        code_lines.append(('%s    =    %s()' % (self.variable_name, self.model.__name__)))
        self.instantiated = True
        pk_name = self.instance._meta.pk.name
        key = ('%s_%s' % (self.model.__name__, getattr(self.instance, pk_name)))
        self.context[key] = self.variable_name
    return code_lines
