diff --git a/django/db/models/deletion.py b/django/db/models/deletion.py
index 92fe4affb9..883c09ef83 100644
a
|
b
|
class Collector:
|
277 | 277 | if self.can_fast_delete(instance): |
278 | 278 | with transaction.mark_for_rollback_on_error(): |
279 | 279 | count = sql.DeleteQuery(model).delete_batch([instance.pk], self.using) |
| 280 | # Set primary key to None |
| 281 | setattr(instance, model._meta.pk.attname, None) |
280 | 282 | return count, {model._meta.label: count} |
281 | 283 | |
282 | 284 | with transaction.atomic(using=self.using, savepoint=False): |