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:
committed by
Tim Graham
parent
d8b2645032
commit
3aeb84df25
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user