def sql_for_inline_foreign_key_references(self, field, known_models, style):
        qn = self.connection.ops.quote_name
        if field.rel.to in known_models:
            output = [style.SQL_KEYWORD('REFERENCES') + ' ' + \
                style.SQL_TABLE(qn(field.rel.to._meta.db_table)) + ' (' + \
                style.SQL_FIELD(qn(field.rel.to._meta.get_field(field.rel.field_name).column)) + ')' +
                self.connection.ops.deferrable_sql()
            ]
            pending = False
        else:
            # We haven't yet created the table to which this field
            # is related, so save it for later.
            output = []
            pending = True

        return output, pending
Return the SQL snippet defining the foreign key reference for a field
dataset/ETHPy150Open CollabQ/CollabQ/vendor/django/db/backends/creation.py/BaseDatabaseCreation.sql_for_inline_foreign_key_references