def after_import(self, dataset, result, using_transactions, dry_run, **kwargs):
<EOL>if not dry_run and any(r.import_type == RowResult.IMPORT_TYPE_NEW for r in result.rows):<EOL><INDENT>connection = connections[DEFAULT_DB_ALIAS]<EOL>sequence_sql = connection.ops.sequence_reset_sql(no_style(), [self._meta.model])<EOL>if sequence_sql:<EOL><INDENT>cursor = connection.cursor()<EOL>try:<EOL><INDENT>for line in sequence_sql:<EOL><INDENT>cursor.execute(line)<EOL><DEDENT><DEDENT>finally:<EOL><INDENT>cursor.close()<EOL><DEDENT><DEDENT><DEDENT>
Reset the SQL sequences after new objects are imported