mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #24343 -- Ensure db converters are used for foreign keys.
Joint effort between myself, Josh, Anssi and Shai.
This commit is contained in:
parent
dbacbc729a
commit
4755f8fc25
7 changed files with 44 additions and 15 deletions
|
@ -369,6 +369,10 @@ class PrimaryKeyUUIDModel(models.Model):
|
|||
id = models.UUIDField(primary_key=True, default=uuid.uuid4)
|
||||
|
||||
|
||||
class RelatedToUUIDModel(models.Model):
|
||||
uuid_fk = models.ForeignKey('PrimaryKeyUUIDModel')
|
||||
|
||||
|
||||
###############################################################################
|
||||
|
||||
# See ticket #24215.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue