mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Fixed crashes with ForeignKey to UUIDField and inheritance with UUIDField primary keys.
This commit is contained in:
committed by
Tim Graham
parent
3ad1074cf9
commit
290c9d6654
@@ -375,3 +375,11 @@ class PrimaryKeyUUIDModel(models.Model):
|
||||
|
||||
class RelatedToUUIDModel(models.Model):
|
||||
uuid_fk = models.ForeignKey('PrimaryKeyUUIDModel')
|
||||
|
||||
|
||||
class UUIDChild(PrimaryKeyUUIDModel):
|
||||
pass
|
||||
|
||||
|
||||
class UUIDGrandchild(UUIDChild):
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user