Fixed #29129 -- Skipped UPDATE when adding a model instance with inherited primary key that has a default.

This commit is contained in:
Abhijeet Viswa 2020-02-26 23:19:05 +05:30 committed by Mariusz Felisiak
parent 7e15795bf0
commit babd412685
3 changed files with 14 additions and 4 deletions

View file

@ -46,3 +46,7 @@ class SelfRef(models.Model):
class PrimaryKeyWithDefault(models.Model):
uuid = models.UUIDField(primary_key=True, default=uuid.uuid4)
class ChildPrimaryKeyWithDefault(PrimaryKeyWithDefault):
pass