1
0
mirror of https://github.com/django/django.git synced 2025-10-27 07:36:08 +00:00

[1.9.x] Fixed #25560 -- Made empty string related_name invalid.

Thanks to Ali Lotfi for the initial report and patch
and Tim Graham for the review.

Backport of c1b6a8a98b from master
This commit is contained in:
Simon Charette
2015-10-16 12:21:30 -04:00
committed by Tim Graham
parent d8b2645032
commit 3aeb84df25
3 changed files with 3 additions and 2 deletions

View File

@@ -662,6 +662,7 @@ class RelativeFieldTests(IsolatedModelsTestCase):
'ends_with_whitespace_%s' % whitespace,
'with', # a Python keyword
'related_name\n',
'',
]
# Python 2 crashes on non-ASCII strings.
if six.PY3: