Re: possible bug in model validation layer

2010-01-09 Thread Karen Tracey
On Sat, Jan 9, 2010 at 8:52 AM, Waldemar Kornewald wrote: > 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

possible bug in model validation layer

2010-01-09 Thread Waldemar Kornewald
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/