Changes between Version 1 and Version 2 of Ticket #31071
- Timestamp:
- Dec 6, 2019, 9:56:25 AM (5 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #31071 – Description
v1 v2 2 2 3 3 {{{ 4 from uuid import uuid4 5 6 from django.db import models 7 4 8 class Sample(models.Model): 5 9 id = models.UUIDField(primary_key=True, default=uuid4) … … 16 20 17 21 18 However, in Django 3.0, this results in two INSERTs (naturally the second one fails). The behaviour also changes if the `id` field `default` is removed.22 However, in Django 3.0, this results in two INSERTs (naturally the second one fails). The behaviour also changes if `default=uuid4` is removed from the `id` field. 19 23 20 24 This seems related to https://code.djangoproject.com/ticket/29260.