[django/django] 1e5e2a: Fixed #22064 -- Add check for related_name

5 views
Skip to first unread message

GitHub

unread,
Oct 6, 2014, 4:07:12 PM10/6/14
to django-...@googlegroups.com
Branch: refs/heads/master
Home: https://github.com/django/django
Commit: 1e5e2a470768549117ac4696ce3e8b4e51d65664
https://github.com/django/django/commit/1e5e2a470768549117ac4696ce3e8b4e51d65664
Author: André Ericson <de.er...@gmail.com>
Date: 2014-10-04 (Sat, 04 Oct 2014)

Changed paths:
M django/db/models/fields/related.py
M docs/ref/checks.txt
M tests/invalid_models_tests/test_relative_fields.py

Log Message:
-----------
Fixed #22064 -- Add check for related_name

Validates that related_name is a valid Python id or ends with a '+' and
it's not a keyword. Without a check it passed silently leading to
unpredictable problems.

Thanks Konrad Świat for the initial work.


Commit: 6f6e7d01dce94668e178b26da547c4643ed3a6cc
https://github.com/django/django/commit/6f6e7d01dce94668e178b26da547c4643ed3a6cc
Author: Carl Meyer <ca...@oddbird.net>
Date: 2014-10-06 (Mon, 06 Oct 2014)

Changed paths:
M django/db/models/fields/related.py
M docs/ref/checks.txt
M tests/invalid_models_tests/test_relative_fields.py

Log Message:
-----------
Merge pull request #3308 from aericson/ticket_22064

Fixed #22064 -- Add check for related_name


Compare: https://github.com/django/django/compare/51165401be3e...6f6e7d01dce9
Reply all
Reply to author
Forward
0 new messages