'Produces the code snippet that gets put into forwards()'

def forwards_code(self):

    field_defs = (',\n                                                '.join([('(%r,    %s)' % (name, defn)) for (name, defn) in self.triples_to_defs(self.model_def).items()]) + ',')
    return (self.FORWARDS_TEMPLATE % {'model_name': self.model._meta.object_name, 'table_name': self.model._meta.db_table, 'app_label': self.model._meta.app_label, 'field_defs': field_defs})
