summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2014-06-01Fixed #22744 -- Fixed sqlite3 get_relations introspection with viewsClaude Paroz
Thanks Tim Graham for the report and Simon Charette for the review.
2014-06-01Fixed #22711 -- Adjusted ordering checks to allow implicit relation fields.Vincent-Vega
refs #19195.
2014-06-01Fixed #22659 -- Prevent model states from sharing field instances.Simon Charette
Thanks to Trac alias tbartelmess for the report and the test project.
2014-06-01Merge pull request #2726 from gchp/ticket-20550Aymeric Augustin
Fixed #20550 -- Added ability to preserve test db between runs
2014-05-30Fixed #22682 -- `makemigrations` will create `MIGRATION_MODULES` packageMoayad Mardini
`makemigrations` will automatically create the package specified in `MIGRATION_MODULES` if it doesn't already exist. Thanks ovidiuc4 for the report.
2014-05-29Implement Migration.run_beforeChris Beaven
This attribute (used for reverse dependencies) was previously declared and mentioned in the code, but never actually used.
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-05-28Simplified, very slightly, some code in the oracle backendAlex Gaynor
2014-05-28Merge pull request #2734 from valberg/double_order_troubleAndrew Godwin
Fixed #22720 -- Migrations attempt to create _order twice.
2014-05-29Fixed #22720 -- Migrations attempt to create _order twice.Víðir Valberg Guðmundsson
2014-05-28Set straight the sense of 'uppercases_column_names' feature flagShai Berger
2014-05-28Fixed #22715: Corrected sql for defaults of BinaryField on Oracle with Python3Shai Berger
While at it, fixed a problem in returning empty values (still with BinaryField/Oracle/Python3).
2014-05-28Fixed #20550 -- Added ability to preserve test db between runsGreg Chapple
2014-05-24Fixed #22676 -- makemigrations --dry-run should not ask for defaultsMoayad Mardini
Made the fix in InteractiveMigrationQuestioner class code, rather than MigrationAutodetector, because --dry-run shouldn't affect whether MigrationAutodetector will detect non-nullable fields, but the questioner should skip the question and returns a None for default (since that won't be used anyway) if --dry-run is used.
2014-05-22Fixed #22679 -- Fixed empty tuple serialization in MigrationWriter.Moayad Mardini
Thanks rockallite.wulf for the report.
2014-05-22Made nested deconstruction support both forms of deconstruct()Marc Tamlyn
Nested deconstruction should (silently) handle Field.deconstruct() as well as other arbitrary deconstructable objects. This allows having a field in the deconstruction of another field.
2014-05-21Merge pull request #2679 from ramiro/t22421Ramiro Morales
Fixed #22421 -- Regression in fixtures loading.
2014-05-21Fixed unused import.Loic Bistuer
2014-05-21Fixed the ordering of prefetch lookups so that latter lookups can refer to ↵Loic Bistuer
former lookups. Thanks Anssi Kääriäinen and Tim Graham for the reviews. Refs #17001 and #22650.
2014-05-21Fixed #22650 -- Fixed regression on prefetch_related.Loic Bistuer
Regression from f51c1f59 when using select_related then prefetch_related on the reverse side of an O2O: Author.objects.select_related('bio').prefetch_related('bio__books') Thanks Aymeric Augustin for the report and tests. Refs #17001.
2014-05-20Revert "Fixed #22645: Allow apps with no models module to still have migrations"Andrew Godwin
This reverts commit a4737bf6ae36a5f1cb29f2232f6deeff084fabff.
2014-05-20Fixed #22432: SQLite M2M repointing now works. Thanks to xelnor.Andrew Godwin
2014-05-20Fixed #22649: Beefed up quote_valueAndrew Godwin
2014-05-20Merge pull request #2634 from loic/ticket22424Andrew Godwin
Fixed #22424 -- MySQL doesn't accept migrations' one-off default values ...
2014-05-20Add feature for implied null (needed for Firebird backend)Andrew Godwin
2014-05-20Fixed #22645: Allow apps with no models module to still have migrationsAndrew Godwin
2014-05-19Revert "Fixed regression from a2dd618e3b4a7472fab852da450ca5eef92a922f."Marc Tamlyn
This reverts commit 5a2556afb9b1b3ef6e0622552970c67ac84ecd28.
2014-05-18Fixed regression from a2dd618e3b4a7472fab852da450ca5eef92a922f.Florian Apolloner
2014-05-18Fixed #22424 -- Fixed handling of default values for TextField/BinaryField ↵Loic Bistuer
on MySQL. Thanks syphar for the review and suggestions.
2014-05-17Fixed #22421 -- Regression in fixtures loading.Ramiro Morales
Loading fixtures were failing since the refactoring in 244e2b71f5 for inheritance setups where the chain contains abstract models and the root ancestor contains a M2M relation. Thanks Stanislas Guerra for the report. Refs #20946.
2014-05-17Fixed #22626 -- Allow BinaryField defaults with SQlite.Raphaël Barrois
Also fixes a slight issue in sqlite3.schema._remake_table where default values where quoted with "column name" quoting rules. Reference for quoting: http://www.sqlite.org/lang_expr.html Thanks Shai Berger for the review. Refs #22424.
2014-05-17Fixed #22648 -- Transform.output_type should respect overridden ↵Marc Tamlyn
custom_lookup and custom_transform. Previously, class lookups from the output_type would be used, but any changes to custom_lookup or custom_transform would be ignored.
2014-05-17Merge pull request #2346 from Markush2010/ticket21905Florian Apolloner
Fixed #21905 -- Add info message if DateField or TimeField use a fixed value
2014-05-16Fixed typo.Tim Graham
2014-05-16Fix storing of binary fields and unicode textfields for Oracle/Python3Shai Berger
2014-05-16Fixed #21905 -- Add info message if DateField or TimeField use a fixed valueMarkus Holtermann
2014-05-16Fixed #18389 -- Fixed the way contribute_to_class is calledVlad Starostin
Now this method is only called only if the object is an instance. This allows to have field classes as model class attributes.
2014-05-16Refs #21798 - Modified error number to provide room for future expansion.Russell Keith-Magee
2014-05-16Fixed #21798 -- Added check for DateTime mutually exclusive optionsDaniel Pyrathon
Added DateTimeCheckMixin to avoid the use of default, auto_now, and auto_now_add options together. Added the fields.E151 Error that is raised if one or more of these options are used together.
2014-05-15Harmonized some PEP 0263 coding preamblesClaude Paroz
2014-05-15Fixed #20897 -- Added make_cursor() for consistent cursor creationTim Martin
In django.db.backends.BaseDatabaseWrapper, pulled the creation of cursors in the non-debug case into a separate method, in order to make behavior more consistent when overriding the cursor creation in derived classes.
2014-05-10Fixed #22508 -- Avoided overwriting select_related.Aymeric Augustin
Previously, known related objects overwrote related objects loaded though select_related. This could cancel the effect of select_related when it was used over more than one level. Thanks boxm for the bug report and timo for bisecting the regression.
2014-05-10Adjusted refactoring of vendor checks.Aymeric Augustin
Thanks Shai for the thorough review.
2014-05-08Fixed #22325: Ignore __first__ dependencies to your own appAndrew Godwin
2014-05-08Fixed #22563: Ignore AUTH_USER_MODEL errors in from_stateAndrew Godwin
2014-05-08Added feature flags for introspection capabilities.Aymeric Augustin
2014-05-08Split ignores_nulls_in_unique_constraints feature.Aymeric Augustin
Oracle and SQL Server don't have exactly the same limitations. It's worth treating them differently.
2014-05-08Replaced vendor checks by three feature flags.Aymeric Augustin
2014-05-08Appeased flake8.Aymeric Augustin
2014-05-08Fixed #22476: Couldn't alter attributes on M2Ms with through= setAndrew Godwin