Ticket #5102: zero_pk.diff
File zero_pk.diff, 630 bytes (added by , 17 years ago) |
---|
-
usr/local/djangolibs/django_trunk/django/db/models/base.py
209 209 210 210 # First, try an UPDATE. If that doesn't update anything, do an INSERT. 211 211 pk_val = self._get_pk_val() 212 pk_set = bool(pk_val)212 pk_set = pk_val is not None 213 213 record_exists = True 214 214 if pk_set: 215 215 # Determine whether a record with the primary key already exists.