summaryrefslogtreecommitdiff
path: root/django/db
AgeCommit message (Collapse)Author
2013-09-25Fixed #3871 -- Custom managers when traversing reverse relations.Loic Bistuer
2013-09-25Fixed #21126 -- QuerySet value conversion failureAnssi Kääriäinen
A .annotate().select_related() query resulted in misaligned rows vs columns for compiler.resolve_columns() method. Report & patch by Michael Manfre.
2013-09-25Add reverse_code optional argument to RunPythonAndrew Godwin
2013-09-25Allow callables as the argument to RunPythonAndrew Godwin
2013-09-25Make sqlmigrate ignore the RunPython operationAndrew Godwin
2013-09-25Add RunPython migration operation and testsAndrew Godwin
2013-09-25Add equality support for Project/ModelStateAndrew Godwin
2013-09-24Added '*' to quote_cacheAnssi Kääriäinen
The commit for #18333 missed quote_cache default value for *. Refs #18333.
2013-09-24Fixed #18333 - Quoted annotated column namesMichael Manfre
2013-09-24Fix small grammatical error in comment.Andrei Picus
Changed 'there are no filtering' to 'there is no filtering'.
2013-09-24Removed double import in mysql base.pyClaude Paroz
2013-09-22Removed a few trailing backslashes.Aymeric Augustin
We have always been at war with trailing backslashes.
2013-09-18Fixed #12568 -- no error when accessing custom field's descriptorAnssi Kääriäinen
The SubfieldBase's descriptor caused an AttributeError when accessed from the class. Introspection didn't like that. Patch by Trac alias supervacuo.
2013-09-17Fixed #21114 -- Migrations must not have a dependency to themselves.Markus Holtermann
2013-09-17Fixed #21109 -- made db cursor error wrapping fasterAnssi Kääriäinen
2013-09-16Added backwards compatability shims for util modules.Tim Graham
refs #17627
2013-09-16Fixed #17627 -- Renamed util.py files to utils.pyTim Graham
Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor Kołodziej for the initial patch.
2013-09-14REmoved some unused importsAlex Gaynor
2013-09-14Merge branch 'master' of https://github.com/django/djangoAlex Gaynor
2013-09-14Removed an import * that was masking importing stuff from the wrong locationAlex Gaynor
2013-09-14Fixed #20950 -- Instantiate OrderedDict() only when neededAnssi Kääriäinen
The use of OrderedDict (even an empty one) was surprisingly slow. By initializing OrderedDict only when needed it is possible to save non-trivial amount of computing time (Model.save() is around 30% faster for example). This commit targetted sql.Query only, there are likely other places which could use similar optimizations.
2013-09-14Fixed #21097 - Added DatabaseFeature.can_introspect_autofieldMichael Manfre
2013-09-10Fixed #20841 -- Added messages to NotImplementedErrorsGregor MacGregor
Thanks joseph at vertstudios.com for the suggestion.
2013-09-10Made MigrationWriter look for a "deconstruct" attribute on functions.Loic Bistuer
Refs #20978.
2013-09-10Fixed #20978 -- Made deletion.SET_NULL more friendly for ↵Loic Bistuer
MigrationWriter.serialize.
2013-09-09Fixed #20707 -- Added explicit quota assignment to Oracle test userСадовский Николай
To enable testing on Oracle 12c
2013-09-08Removed an unused local varAlex Gaynor
2013-09-07Negligible style fix.Aymeric Augustin
2013-09-07RunSQL migration operation and alpha SeparateDatabaseAndState op'n.Andrew Godwin
2013-09-06Fixed a number of flake8 errors -- particularly around unused imports and ↵Alex Gaynor
local variables
2013-09-07Fixed regression introduced by efd1e60, 'map' returns an iterator on PY3.Loic Bistuer
2013-09-06Fixed #20007 -- Configured psycopg2 to return UnicodeArraysEric Boersma
Thanks hogbait for the report.
2013-09-06Fixed #21037 -- Made MigrationWriter raise a ValueError when serializing ↵Loic Bistuer
lambda functions.
2013-09-06Fixed #11811 -- Data-loss bug in queryset.update.Aymeric Augustin
It's now forbidden to call queryset.update(field=instance) when instance hasn't been saved to the database ie. instance.pk is None.
2013-09-06Minor factorization.Aymeric Augustin
2013-09-06Adding 'sqlmigrate' command and quote_parameter to support it.Andrew Godwin
2013-09-06Migration autodetector now corerctly deals with proxy modelsAndrew Godwin
2013-09-06Project/ModelState now correctly serialize multi-model inheritanceAndrew Godwin
2013-09-06Fixed #10164 -- Made AutoField increase monotonically on SQLiteChris Wilson
Thanks malte for the report.
2013-09-06Fix SchemaEditor.__exit__ to handle exceptions correctlyAndrew Godwin
2013-09-06Add --list option to migrate commandAndrew Godwin
2013-09-06Make db.migrations ignore South-style migrations.Andrew Godwin
2013-09-06Fixed #21015 -- Fixed MigrationLoader when importlib.import_module returns a ↵Loic Bistuer
file module or an empty directory.
2013-09-06Fixed #21014 -- Fixed gobbled ImportError in MigrationLoader.Loic Bistuer
2013-09-05Fixed #21035 -- Changed docs to treat the acronym SQL phonetically.Eric Boersma
The documentation and comments now all use 'an' to refer to the word SQL and not 'a'.
2013-09-04Tested exc_type instead of exc_value in __exit__.Aymeric Augustin
exc_value might be None even though there's an exception, at least on Python 2.6. Thanks Thomas Chaumeny for the report. Fixed #21034. Forward-port of a8624b2 from 1.6.x.
2013-09-04Fixed #21010 -- Changed ModelState to only copy _meta.local_fields.Loic Bistuer
2013-09-02Used six.moves.zip_longest, new in six 1.4.0.Aymeric Augustin
2013-09-02Replaced "not PY3" by "PY2", new in six 1.4.0.Aymeric Augustin
2013-08-31Fixed #21008 -- Made MigrationWriter handle Promise objects.Loic Bistuer