diff options
| author | Joel Bohman <joelboh@gmail.com> | 2013-11-22 23:31:50 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-11-24 13:15:50 -0500 |
| commit | 19e5cd77f0536b778b00788e34d8199835143855 (patch) | |
| tree | e239be3115898426382ad248a0f44e824ae1058e /tests/schema/models.py | |
| parent | f88e7608696aa48ec2a2638893f3e548a4f6b840 (diff) | |
Fixed #21497 -- Forced conversion to bytes for very long index names
Diffstat (limited to 'tests/schema/models.py')
| -rw-r--r-- | tests/schema/models.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/schema/models.py b/tests/schema/models.py index b79f54699d..06ba8fb760 100644 --- a/tests/schema/models.py +++ b/tests/schema/models.py @@ -95,3 +95,10 @@ class UniqueTest(models.Model): class Meta: app_cache = new_app_cache unique_together = ["year", "slug"] + + +class BookWithLongName(models.Model): + author_foreign_key_with_really_long_field_name = models.ForeignKey(Author) + + class Meta: + app_cache = new_app_cache |
