summaryrefslogtreecommitdiff
path: root/tests/model_fields/models.py
diff options
context:
space:
mode:
authorAbhaya Agarwal <abhaya@instascribe.com>2015-05-13 02:34:56 +0530
committerTim Graham <timograham@gmail.com>2015-05-12 19:37:37 -0400
commit290c9d665490d80b0a1b648fb022190d7dc375fc (patch)
tree36f312d9666a7620efd50493b07538aed536121e /tests/model_fields/models.py
parent3ad1074cf9863796ecb5c34bcb84043110f572d3 (diff)
[1.8.x] Fixed #24698, #24712 -- Added ForeignKey.get_db_prep_value()
Fixed crashes with ForeignKey to UUIDField and inheritance with UUIDField primary keys.
Diffstat (limited to 'tests/model_fields/models.py')
-rw-r--r--tests/model_fields/models.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py
index 620fa9ec5d..2141610b0e 100644
--- a/tests/model_fields/models.py
+++ b/tests/model_fields/models.py
@@ -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