summaryrefslogtreecommitdiff
path: root/tests/modeltests/update_only_fields
AgeCommit message (Collapse)Author
2013-02-26Merged regressiontests and modeltests into the test root.Florian Apolloner
2013-02-08Cleaned up some lingering signals in the test suite that were causing ↵Julien Phalip
spurious failures with Pypy and Postgres.
2012-09-07[py3k] Silence many warnings while running the tests.Alex Gaynor
2012-08-12Fixed #18306 -- Made deferred models issue update_fields on saveAndrei Antoukh
Deferred models now automatically update only the fields which are loaded from the db (with .only() or .defer()). In addition, any field set manually after the load is updated on save.
2012-08-12[py3] Refactored __unicode__ to __str__.Aymeric Augustin
* Renamed the __unicode__ methods * Applied the python_2_unicode_compatible decorator * Removed the StrAndUnicode mix-in that is superseded by python_2_unicode_compatible * Kept the __unicode__ methods in classes that specifically test it under Python 2
2012-07-05Fixed #18362 - Made model.save() update_fields accept attnamesAndrei Antoukh
2012-05-22Fixed #18304 -- Optimized save() when update_can_self_select=FalseAnssi Kääriäinen
Databases with update_can_self_select = False (MySQL for example) generated non-necessary queries when saving a multitable inherited model, and when the save resulted in update.
2012-05-12Avoided test failure on MySQL by skipping a failing testAnssi Kääriäinen
MySQL generates an extra query in inheritance cases when doing an update. This results in a test failure when checking for number of queries in update_only_fields tests. Added a skip temporarily to avoid this test failure. Refs #18304.
2012-05-12Fixed #4102 -- Allow update of specific fields in model.save()Andrei Antoukh
Added the ability to update only part of the model's fields in model.save() by introducing a new kwarg "update_fields". Thanks to all the numerous reviewers and commenters in the ticket