Backport of c196e01
…ions can be displayed as selected even if the lookup's first element is not a string. Backport of 88e1715
Backpatch of dc569c8
…eate SQLite used INSERT INTO tbl SELECT %s UNION SELECT %s, the problem was that there should have been UNION ALL instead of UNION. Refs #19351 Backpatch of a275824
Thanks tome for the suggestion and patch. Backport of 3587991 from master
thanks to Brent O'Connor for the idea and intial docs
Backport of a32f30c from master
… and documented the value_from_datadict method. Backport of 04775b4 from master
Thanks Graham Dumpleton for the patch. Backport of bc00075 from master.
…ndlers Thanks bernardofontes for the report. Backport of b774c59 from master.
…to_field There was a potential data-loss issue involved -- when clearing instance's m2m assignments it was possible some other instance's m2m data was deleted instead. This commit also improved None handling for to_field cases. Backpatch of 611c4d6
…adroffne for the suggestion. Backport of da958eb from master
…c79dd5. The problem description in #18239 asserted that http://bugs.python.org/issue670664 was fixed in Python 2.6.8, but based on http://bugs.python.org/issue670664#msg146770 it appears that's not correct; the fix was only applied in 2.7, 3.2, and Python trunk. Therefore we must use our patched HTMLParser subclass in all Python 2.6 versions. Backport of fcec904 from master. Fixes #19148.
… DB driver caching; thanks jtiai for the suggestion. Backport of 2f722d9 from master
…ets() Backport of eed4faf from master
…d methods need to handle None if the field may be null. Backport of 4cef9a0 from master
… for ForeignKeys; thanks jbauer for the suggestion. Backport of db598dd from master
…o be first in the list of middleware. Backport of 3e08570 from master
…es when form validation fails. Backport of fd02bcf from master
…en Tracey for the feedback. Backport of 9190d89 from master