django1/django
Simon Charette 379bf1a2d4 Fixed #8467 -- Prevented crash when adding existent m2m relation with an invalid type.
This was an issue anymore on backends that allows conflicts to be
ignored (Refs #19544) as long the provided values were coercible to the
expected type. However on the remaining backends that don't support
this feature, namely Oracle, this could still result in an
IntegrityError.

By attempting to coerce the provided values to the expected types in
Python beforehand we allow the existing value set intersection in
ManyRelatedManager._get_missing_target_ids to prevent the problematic
insertion attempts.

Thanks Baptiste Mispelon for triaging this old ticket against the
current state of the master branch.
2019-11-22 09:08:10 +01:00
..
apps Fixed #30159 -- Removed unneeded use of OrderedDict. 2019-02-06 13:48:39 -05:00
bin Reverted "Fixed #27878, refs #23919 -- Used python3 shebangs." 2017-03-07 10:10:32 -05:00
conf Fixed #29983 -- Replaced os.path() with pathlib.Path in project template and docs. 2019-11-07 11:11:27 +01:00
contrib Simplified TemplateDetailView with pathlib.Path.read_text(). 2019-11-21 15:14:03 +01:00
core Removed unnecessary parentheses in various code. 2019-11-18 15:25:59 +01:00
db Fixed #8467 -- Prevented crash when adding existent m2m relation with an invalid type. 2019-11-22 09:08:10 +01:00
dispatch Capitalized "Python" in docs and comments. 2018-10-09 09:26:07 -04:00
forms Fixed #31012 -- Reverted "Fixed #29056 -- Fixed HTML5 validation of required SelectDateWidget." 2019-11-21 20:53:31 +01:00
http Fixed #30899 -- Lazily compiled import time regular expressions. 2019-10-29 09:22:26 +01:00
middleware Fixed #30899 -- Lazily compiled import time regular expressions. 2019-10-29 09:22:26 +01:00
template Removed unnecessary numeric indexes in format strings. 2019-11-19 08:29:47 +01:00
templatetags Replaced loop with dictionary comprehension. 2018-12-19 17:31:48 -06:00
test Removed unnecessary numeric indexes in format strings. 2019-11-19 08:29:47 +01:00
urls Fixed #30899 -- Lazily compiled import time regular expressions. 2019-10-29 09:22:26 +01:00
utils Fixed #30989 -- Removed unimplemented B time format. 2019-11-18 12:50:41 +01:00
views Fixed #30405 -- Fixed source code mismatch crash in ExceptionReporter. 2019-11-12 11:31:12 +01:00
__init__.py Bumped version; master is now 3.1 pre-alpha. 2019-09-10 11:54:25 +02:00
__main__.py Fixed #24857 -- Added "python -m django" entry point. 2015-09-07 19:54:32 -04:00
shortcuts.py Refs #25978 -- Removed shortcuts.render_to_response() per deprecation timeline. 2019-01-17 10:50:25 -05:00