Fixed #25560 -- Made empty string related_name invalid.

Thanks to Ali Lotfi for the initial report and patch
and Tim Graham for the review.
This commit is contained in:
Simon Charette 2015-10-16 12:21:30 -04:00
parent 4dcc2a1955
commit c1b6a8a98b
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: