summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-11-28Fixed a deprecation warning introduced by 96dd48c83f.Simon Charette
2013-11-28Merge pull request #2005 from loic/ticket21169Anssi Kääriäinen
Use 'update_fields' in RelatedManager.clear() when bulk=False.
2013-11-29Use 'update_fields' in RelatedManager.clear() when bulk=False.Loic Bistuer
Thanks Simon Charette for the suggestion. Refs #21169.
2013-11-28Fixed #21496 -- Fixed crash when GeometryField uses TextInputClaude Paroz
Thanks Rhett Garber for the report and initial patch.
2013-11-28All the E125 errors hvae been eradicated.Alex Gaynor
2013-11-28Fixed E125 pep8 warningsChristopher Medrela
2013-11-28Fixed #21517 -- Added unit test for non-autoincrement primary key with value 0.Vajrasky Kok
2013-11-28Fixed #21515 -- Corrected example of template.Context in documentation.Baptiste Mispelon
Thanks to trac user oubiga for the report.
2013-11-27A handle of flake8 fixesAlex Gaynor
2013-11-27Added a warning regarding risks in serving user uploaded media.Tim Graham
Thanks Preston Holmes for the draft text.
2013-11-27Merge pull request #2000 from loic/docsAnssi Kääriäinen
Fixed typo in release notes.
2013-11-28Fixed typo in release notes.Loic Bistuer
2013-11-27PEP-8 cleanupAnssi Kääriäinen
Refs #21169
2013-11-27Added a bulk option to RelatedManager remove() and clear() methodsLoic Bistuer
Refs #21169
2013-11-27Used simpler queries for m2m clearing when possible.Anssi Kääriäinen
Refs #21169
2013-11-27Fixed #21169 -- Reworked RelatedManager methods use default filteringLoic Bistuer
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.
2013-11-27Update tutorial part 1 to discuss migrations properlyAndrew Godwin
2013-11-27Include deferred SQL in sqlmigrate outputAndrew Godwin
2013-11-27Fixed #21438: makemigrations now detects ManyToManyFieldsAndrew Godwin
2013-11-27Field.deconstruct() howto docsAndrew Godwin
2013-11-27PostGIS schema editor supportAndrew Godwin
2013-11-27Add gis deconstruct() method (this does not make schema work)Andrew Godwin
2013-11-27Change initial migration writing to work as docs suggest.Andrew Godwin
Application template now includes an empty migrations module, and the autodetector will only make initial migrations for apps with empty modules.
2013-11-27Fix squashed migration loading ordering issueAndrew Godwin
2013-11-26Merge pull request #1985 from raphaa/21499Andrew Godwin
Fixed #21499 -- Migrations won't work if field signature changes
2013-11-26Replace use of dict.has_key with `key in dict`Alex Gaynor
2013-11-26Fixed a typo in the documentationAlex Gaynor
2013-11-26Fixed #21448 -- Fixed test client logout with cookie-based sessionsClaude Paroz
Thanks Gunnar Scherf for the report and the suggested patch.
2013-11-26Fixed #21355 -- try importing _imaging from PIL namespace first.Richard Xia
2013-11-26Use str.isupper() to test if a string is uppercased.Baptiste Mispelon
2013-11-26Fixed #21512 -- Added more complete information about Pillow and PIL in ↵Vajrasky Kok
model_fields and model_forms tests.
2013-11-25Fixed #20522 - Allowed use of partially validated object in ↵Jay Leadbetter
ModelAdmin.add_view formset validation. 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.
2013-11-25Fixed #21489 -- Make formsets directly importable from django.forms.Loic Bistuer
2013-11-25Fixed #21509 -- Removed dead exception catching code.Krzysztof Jurewicz
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.
2013-11-25flake8 fixAlex Gaynor
2013-11-25Fixed #21403: Corrected test codeShai Berger
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.
2013-11-25Fixed #21507 -- Corrected default widget information for FileFieldLudwik Trammer
2013-11-25Fixed test failure on OracleShai Berger
Failure was introduced with test in [19e5cd77f0536b778b00788e34d8199835143855]
2013-11-24flake8 fixesAlex Gaynor
2013-11-24Fixed some unnescesarily gendered language in the docsAlex Gaynor
2013-11-24Fixed #21391 -- Allow model signals to lazily reference their senders.Simon Charette
2013-11-24Fixed typo in previous commit; refs #21490.Tim Graham
2013-11-24Fixed #21490 -- Fixed custom admin URL reverse example.Tim Graham
Thanks glarrain for the report.
2013-11-24Removed confusing comments from the docs.Loic Bistuer
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.
2013-11-24Fixed #21497 -- Forced conversion to bytes for very long index namesJoel Bohman
2013-11-24Added more tests for ContentTypeManager.get_for_model.Antonis Christofides
2013-11-24Fixed #21500 -- Removed imports of deprecated utils.importlibBaptiste Mispelon
2013-11-24Properly closed cache connections at the end of the request.Florian Apolloner
This only affects the new cache api and not the deprecated get_cache. Refs #21012
2013-11-24Fixed flake8 error (5 space identation!!!)Alex Gaynor
2013-11-24Fixed #21499 -- Added a paragraph to the docs.Raphael Jasjukaitis