[Python] django-import-export id auto generated by the package during insert?

Discussão em 'Python' iniciado por Stack, Julho 20, 2025.

  1. Stack

    Stack Membro Participativo

    I'm using django-import-export and trying to work it with multi-thread concurrency.

    I tried logging the sql queries and notice that INSERT query has id values generated as well.

    INSERT INTO "lprovider" ("id", "npi", "provider_id", "first_name", "last_name") VALUES (278082, '1345', NULL, 'CHARLES', 'STEVENS')


    Is it expected? The package self populates the primary key?

    Continue reading...

Compartilhe esta Página