Hi,
the model validation layer checks for uniqueness of the primary_key
(in base.py: _perform_unique_checks()). But what if the pk value is
None (indicating for an AutoField that it should get an id from the
DB)?
Currently, it still issues a DB query testing if there's an entity
with a pk of None/NULL. Do some DBs allow for a nullable pk or is the
query executed unnecessarily?
Bye,
Waldemar Kornewald