- 28 Kas, 2013 3 kayıt (commit)
-
-
Alex Gaynor yazdı
-
Christopher Medrela yazdı
-
Vajrasky Kok yazdı
-
- 27 Kas, 2013 17 kayıt (commit)
-
-
Baptiste Mispelon yazdı
Thanks to trac user oubiga for the report.
-
Alex Gaynor yazdı
-
Tim Graham yazdı
Thanks Preston Holmes for the draft text.
-
Anssi Kääriäinen yazdı
Fixed typo in release notes.
-
Loic Bistuer yazdı
-
Anssi Kääriäinen yazdı
Refs #21169
-
Loic Bistuer yazdı
Refs #21169
-
Anssi Kääriäinen yazdı
Refs #21169
-
Loic Bistuer yazdı
The `remove()` and `clear()` methods of the related managers created by `ForeignKey`, `GenericForeignKey`, and `ManyToManyField` suffered from a number of issues. Some operations ran multiple data modifying queries without wrapping them in a transaction, and some operations didn't respect default filtering when it was present (i.e. when the default manager on the related model implemented a custom `get_queryset()`). Fixing the issues introduced some backward incompatible changes: - The implementation of `remove()` for `ForeignKey` related managers changed from a series of `Model.save()` calls to a single `QuerySet.update()` call. The change means that `pre_save` and `post_save` signals aren't called anymore. - The `remove()` and `clear()` methods for `GenericForeignKey` related managers now perform bulk delete so `Model.delete()` isn't called anymore. - The `remove()` and `clear()` methods for `ManyToManyField` related managers perform nested queries when filtering is involved, which may or may not be an issue depending on the database and the data itself. Refs. #3871, #21174. Thanks Anssi Kääriäinen and Tim Graham for the reviews.
-
Andrew Godwin yazdı
-
Andrew Godwin yazdı
-
Andrew Godwin yazdı
-
Andrew Godwin yazdı
-
Andrew Godwin yazdı
-
Andrew Godwin yazdı
-
Andrew Godwin yazdı
Application template now includes an empty migrations module, and the autodetector will only make initial migrations for apps with empty modules.
-
Andrew Godwin yazdı
-
- 26 Kas, 2013 9 kayıt (commit)
-
-
Andrew Godwin yazdı
Fixed #21499 -- Migrations won't work if field signature changes
-
Alex Gaynor yazdı
-
Alex Gaynor yazdı
-
Claude Paroz yazdı
Thanks Gunnar Scherf for the report and the suggested patch.
-
Richard Xia yazdı
-
Baptiste Mispelon yazdı
-
Vajrasky Kok yazdı
Fixed #21512 -- Added more complete information about Pillow and PIL in model_fields and model_forms tests.
-
Jay Leadbetter yazdı
Updated ModelAdmin to use form.instance when passing parent model to child inlines for add_view. There is effectively no change in the change_view since the previously passed 'obj' is the same as form.instance. Thanks to meshy for report, and EvilDMP and timo for review.
-
Loic Bistuer yazdı
-
- 25 Kas, 2013 7 kayıt (commit)
-
-
Krzysztof Jurewicz yazdı
Since Python 2.5, KeyboardInterrupt and SystemExit are not subclasses of Exception, so explicitly reraising them before the “except Exception” clause is not necessary anymore.
-
Alex Gaynor yazdı
-
Shai Berger yazdı
A test for annotations incorrectly assumed that the first instance (in the test) of a model using AutoField for PK will always get pk=1. The test was changed to compare against actual instance id instead.
-
Ludwik Trammer yazdı
-
Shai Berger yazdı
Failure was introduced with test in [19e5cd77]
-
Alex Gaynor yazdı
-
Alex Gaynor yazdı
-
- 24 Kas, 2013 4 kayıt (commit)
-
-
Simon Charette yazdı
-
Tim Graham yazdı
-
Tim Graham yazdı
Thanks glarrain for the report.
-
Loic Bistuer yazdı
The settings reference documentation doesn't seem the right place to invite users to write their own db and cache backends. Also the actual wording makes the task sound trivial, which is hardly the case; writing a custom db backend is a very difficult task, and writing a custom cache backend is full of gotcha.
-