Django select_for_update when row doesn't exist yet
When you make an insert with another thread, the database blocks another insert transaction as long as there is conflict by a constraint (primary key, unique index, etc.)
Can you use Django's select_for_update to lock a row that doesn't exist yet to lock that row from other threads reading it while you create and then save a model?