mirror of
https://github.com/django/django.git
synced 2025-08-03 18:38:50 +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:
parent
4dcc2a1955
commit
c1b6a8a98b
3 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue