diff options
| author | Marc Tamlyn <marc.tamlyn@gmail.com> | 2015-02-14 19:37:12 +0000 |
|---|---|---|
| committer | Marc Tamlyn <marc.tamlyn@gmail.com> | 2015-02-20 11:46:57 +0000 |
| commit | c54d73ae01cd787315ba030da17e266c49f386b3 (patch) | |
| tree | ca3f1ddf19fffe2be65b16c81853176571758f5d /tests/model_fields/models.py | |
| parent | 82f39bfb1ac9a4e9c67cb26259bc689947f4c6d0 (diff) | |
[1.8.x] Fixed #24343 -- Ensure db converters are used for foreign keys.
Joint effort between myself, Josh, Anssi and Shai.
Conflicts:
django/db/models/query.py
tests/model_fields/models.py
Backport of 4755f8fc25331c739a6f932cc8aba0cc9e62e352 from master.
Diffstat (limited to 'tests/model_fields/models.py')
| -rw-r--r-- | tests/model_fields/models.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/model_fields/models.py b/tests/model_fields/models.py index 5f580624ba..3d25c89607 100644 --- a/tests/model_fields/models.py +++ b/tests/model_fields/models.py @@ -369,3 +369,7 @@ class NullableUUIDModel(models.Model): class PrimaryKeyUUIDModel(models.Model): id = models.UUIDField(primary_key=True, default=uuid.uuid4) + + +class RelatedToUUIDModel(models.Model): + uuid_fk = models.ForeignKey('PrimaryKeyUUIDModel') |
