def insert(self, **fields):
if self.conflict_target or self.conflict_action:<EOL><INDENT>compiler = self._build_insert_compiler([fields])<EOL>rows = compiler.execute_sql(return_id=True)<EOL>pk_field_name = self.model._meta.pk.name<EOL>return rows[<NUM_LIT:0>][pk_field_name]<EOL><DEDENT>return super().create(**fields).pk<EOL>
Creates a new record in the database.

        This allows specifying custom conflict behavior using .on_conflict().
        If no special behavior was specified, this uses the normal Django create(..)

        Arguments:
            fields:
                The fields of the row to create.

        Returns:
            The primary key of the record that was created.