summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2014-03-31Fixed #22319 -- Fixed migration external dependencies when there are ↵Loic Bistuer
internal dependencies.
2014-03-31Fixed #22359 -- Changing M2M field to blank=True failed on sqlite.Loic Bistuer
2014-03-30Corrected many style guide violations that the newest version of flake8 catchesAlex Gaynor
2014-03-30Fixed #19816 -- Pre-evaluate querysets used in direct relation assignments.Loic Bistuer
Since assignments on M2M or reverse FK descriptors is composed of a `clear()`, followed by an `add()`, `clear()` could potentially affect the value of the assigned queryset before the `add()` step; pre-evaluating it solves the problem. This patch fixes the issue for ForeignRelatedObjectsDescriptor, ManyRelatedObjectsDescriptor, and ReverseGenericRelatedObjectsDescriptor. It completes 6cb6e1 which addressed ReverseManyRelatedObjectsDescriptor.
2014-03-30Fixed transaction handling for a number of operations on related objects.Loic Bistuer
Thanks Anssi and Aymeric for the reviews. Refs #21174.
2014-03-27Add a useful stacklevel to some RemovedInDjango19WarningsChris Beaven
2014-03-26Fixed the PostGIS circular imports caused by 1506c71a95.Simon Charette
Thanks to @loic for the help and @timgraham for the review. refs #12030.
2014-03-25Fixed field deconstruction tests failures introduced by 1506c71a95.Simon Charette
refs #12030.
2014-03-25Fixed #22331 -- Made MigrationAutodetector ignore unmanaged models.Tim Graham
This commit reverts 69d4b1c and tackle the issue from a different angle. Models remain present in the project state, but are now ignored by the autodetector.
2014-03-25Fixed #12030 -- Validate integer field range at the model level.Simon Charette
Thanks to @timgraham for the review.
2014-03-25Fixed #22331 -- Fixed migrations ProjectState to ignore unmanaged models.Loic Bistuer
2014-03-25Fixed #22300 -- Fixed crash in migrations when changing non-relational field ↵Stephen Burrows
to relational.
2014-03-24Fixed #22293 -- Avoided renaming many-to-many tables to themselves.Daniel Hahler
Fixed this for both implementations of _alter_many_to_many, instead of in `alter_db_table` itself (more implementations).
2014-03-23Fixed #22291 -- Avoided shadowing deadlock exceptions on MySQL.Aymeric Augustin
Thanks err for the report.
2014-03-21Removed unused imports.Tim Graham
2014-03-21Removed BaseDatabaseCreation.set_autocommit per deprecation timeline.Aymeric Augustin
2014-03-21Fixed typo in comments.Aymeric Augustin
2014-03-21Removed django.db.backend per deprecation timeline.Aymeric Augustin
2014-03-21Removed deprecated TRANSACTIONS_MANAGED setting.Aymeric Augustin
2014-03-21Removed legacy transaction management per the deprecation timeline.Aymeric Augustin
2014-03-21Removed Model._meta.module_name per deprecation timeline.Tim Graham
refs #19689.
2014-03-21Removed PIL compatability layer per deprecation timeline.Tim Graham
refs #19934.
2014-03-21Removed Model._meta.get_(add|change|delete)_permission methods per ↵Tim Graham
deprecation timeline.
2014-03-21Removed backward compatible shims to rename get_query_set and similar ↵Tim Graham
queryset methods. Also removed the backward compatible shims introduced to rename the attributes ChangeList.root_query_set and ChangeList.query_set.
2014-03-20Fixed #22163 -- Stopped ignoring unhandled kwargs in select_for_update.Aymeric Augustin
2014-03-19Mark model renaming as irreversible for now (#22248)Andrew Godwin
2014-03-19Fixed #22275: unique_together broken if ForeignKey split into new file.Andrew Godwin
Thanks to bak1an for the patch.
2014-03-18Fix any sqlite field migration deleting all implicit m2m tablesChris Beaven
Fixes #22281
2014-03-14Fixed #22001 -- Ensure db_type is respected.Marc Tamlyn
db_parameters should respect an already existing db_type method and return that as its type string. In particular, this was causing some fields from gis to not be generated. Thanks to @bigsassy and @blueyed for their work on the patch. Also fixed #22260
2014-03-14Fixed #22272 -- Fixed regression in DecimalField when using decimal_places=0.Baptiste Mispelon
Thanks to trac user merb for the report.
2014-03-12Fixed #20292: Pass datetime objects (not formatted dates) as params to OracleShai Berger
This seems worthwhile in its own right, but also works around an Oracle bug (in versions 10 -- 11.1) where the use of Unicode would reset the date/time formats, causing ORA-01843 errors. Thanks Trac users CarstenF for the report, jtiai for the initial patch, and everyone who contributed to the discussion on the ticket.
2014-03-12Flake8 correctionsShai Berger
2014-03-11Fixed #22217 - ManyToManyField.through_fields fixes.Akis Kesoglou
- Docs description of arguments mix up. - Keep it from erroneously masking E332 check. - Add checks E338 and E339, tweak message of E337.
2014-03-11Fix AlterField migrations that are related to a RenameModel migrationChris Beaven
2014-03-11Fix autodetector creation of RenameModel migration to capitalize model namesChris Beaven
2014-03-10Fixed #22210 -- Saving model instances to non-related fields.Daniel Pyrathon
Previously, saving a model instance to a non-related field (in particular a FloatField) would silently convert the model to an Integer (the pk) and save it. This is undesirable behaviour, and likely to cause confusion so the validatio has been hardened. Thanks to @PirosB3 for the patch and @jarshwah for the review.
2014-03-10Fixed #22239 -- Add auto detection of renamed modelsChris Beaven
2014-03-09Fixed the last fix for database test settings to work with Python3.Shai Berger
2014-03-09Fixed test breakage following test-settings enhancementsShai Berger
2014-03-08Fix weird autodetector errorAndrew Godwin
2014-03-09Reorganized the database test settingsShai Berger
Change database test settings from "TEST_"-prefixed entries in the database settings dictionary to setting in a dictionary that is itself an entry "TEST" in the database settings. Refs #21775 Thanks Josh Smeaton for review.
2014-03-084 flake8 warning fixesAlex Gaynor
2014-03-08Fixed #22183: Through M2Ms now correctly handledAndrew Godwin
2014-03-08Merge pull request #2315 from bendavis78/issues/22073Andrew Godwin
Fixed #22073 - Ensure CreateTable operation handles backwards migration correctly when M2M fields are present
2014-03-08Fixed #22199: Bad max_length deconstruction for FileFieldAndrew Godwin
2014-03-08Fix bad conflict detection during makemigrationsAndrew Godwin
2014-03-08Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz
Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
2014-03-07Fixed #21863 -- supplemented get_lookup() with get_transform()Anssi Kääriäinen
Also fixed #22124 -- Expanded explanation of exactly what is going on in as_sql() methods.
2014-03-06Don't allow really long migration namesAndrew Godwin
2014-03-06Fixed #22204: Bad circular-dep-breaking if more than one per runAndrew Godwin