mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
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:
@@ -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