summaryrefslogtreecommitdiff
path: root/django/core/management
AgeCommit message (Collapse)Author
2014-05-29Fix test failure caused by 3149cdce32e7261b2d44128ab712c4d4f1a5d429Andrew Godwin
2014-05-29Making SQL management commands migration aware.Víðir Valberg Guðmundsson
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-05-27Argument to `reversed` must be a sequence on Py3.Simon Charette
2014-05-27Fix a regression introduced by f011b90363.Simon Charette
`django.get_version` was actually used by the module.
2014-05-27Removed an old compatibility shim added in 1.0Claude Paroz
2014-05-27Fixed #21630 -- Simplified management command discoveryClaude Paroz
Thanks Aymeric Augustin for the report end the review.
2014-05-27Fixed #22699 -- Configure default settings in some management commands.Aymeric Augustin
This makes it possible to run django.setup() in management commands that don't need a settings module. In addition it simplifies error handling. Thanks Claude for the review.
2014-05-27Fixed #22675 -- makemigrations --dry-run to output migrations to stdout.Moayad Mardini
`makemigrations --dry-run` will output the complete migrations file that would be written if it's used along with `--verbosity 3`.
2014-05-26Fixed a few ResourceWarning in the test suite. Refs #22680.Loic Bistuer
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-24Applied unicode_literals to makemessages commandClaude Paroz
This also fixes #22686 as some sort of side-effect.
2014-05-22the SECRET_KEY is not a hashThomas Grainger
2014-05-19Updated Django makemessages processClaude Paroz
makemessages should now automatically distribute translatable strings in the proper locale files, for Django too (see 50a8ab7cd1e6).
2014-05-18Removed some unnecessary exception naming; thanks claudep.Tim Graham
2014-05-16Fixed #21634 -- Prevented hiding ImproperlyConfigured when command not foundClaude Paroz
Thanks nikolay.v.golub@gmail.com for the report.
2014-05-15Harmonized some PEP 0263 coding preamblesClaude Paroz
2014-05-11Completed long overdue sqlinitialdata deprecation.Ramiro Morales
2014-05-11Fixed #14226 -- Dependency calculation for complex M2M relations.Rainer Koirikivi
`sort_dependencies` incorrectly interpreted 'complex' M2M relations (with explicit through models) as dependencies for a model. This caused circular complex M2M relations to be unserializable by dumpdata. Thanks to aneil for the report and outofculture for initial tests.
2014-05-08Removed unused imports in makemigrationsClaude Paroz
2014-05-06Fixed #22576: Ensure makemigrations doesn't touch the database.Andrew Godwin
2014-05-02Fixed clash caused by the newly introduced -e shorthand for makemessages ↵Loic Bistuer
--exclude. This fixes a regression caused by 0707b82. Refs #22328.
2014-04-30Cleanup failing test w/contenttypes and remove useless graph loadAndrew Godwin
2014-04-30Fixed #22485: Include all unmigrated apps in project state by default.Andrew Godwin
2014-04-30Removed unused import.Tim Graham
2014-04-30Fixed #22511 -- Added args to migrations management commands.Bruno Ribeiro da Silva
2014-04-29Removed bogus, ineffective 'U' flag from codecs.open() call.Ramiro Morales
2014-04-26Fixed #3214 -- Stopped parsing SQL with regex.Aymeric Augustin
Avoided introducing a new regex-based SQL splitter in the migrations framework, before we're bound by backwards compatibility. Adapted this change to the legacy "initial SQL data" feature, even though it's already deprecated, in order to facilitate the transition to migrations. sqlparse becomes mandatory for RunSQL on some databases (all but PostgreSQL). There's no API to provide a single statement and tell Django not to attempt splitting. Since we have a more robust splitting implementation, that seems like a good tradeoff. It's easier to add a new keyword argument later if necessary than to remove one. Many people contributed to both tickets, thank you all, and especially Claude for the review. Refs #22401.
2014-04-26Fixed #22328 -- Added --exclude option to compilemessages and makemessages.Ana Krivokapic
2014-04-23Set compile messages options as class variableClaude Paroz
Refs #18714. Same logic as options for makemessages commands.
2014-04-21Fixed migrate when called inside a transaction.Florian Apolloner
This is useful for tests manually calling migrate inside a testcase, for normal usage this should make no difference, since there is no surrounding transaction after all. If there is one we still try to leave the transaction in a useable state (for postgres at least). If this commit turns out to be causing issues, settings savepoint=False is probably the right fix :)
2014-04-21Appeased flake8 2.1.0.Aymeric Augustin
2014-04-18Adapted fixture read mode to file typeClaude Paroz
Binary mode added in ed532a6a1e is not supported by ZipFile. Refs #22399.
2014-04-18Fixed #22399 -- Forced fixture reading in binary modeClaude Paroz
This might help on systems where default encoding is not UTF-8 (and on Python 3). Thanks bacilla for the report.
2014-04-16Revert "Fixed #22401 -- Deprecated regular expression parsing of initial SQL ↵Tim Graham
in favor of installing sqlparse." This reverts commit 071c9337750b296d198cced56f3ffad0e176afb6. This introduced a regression on MySQL and custom SQL is deprecated.
2014-04-10Fixed #22194 -- Added --list-tags option to check command.Tim Graham
Thanks Elvard for the patch.
2014-04-09Fixed #22401 -- Deprecated regular expression parsing of initial SQL in ↵julien 'pouete' Godin
favor of installing sqlparse.
2014-03-30Corrected many style guide violations that the newest version of flake8 catchesAlex Gaynor
2014-03-26Fixed #22335 -- Fixed popen_wrapper error on non-English Windows systems.Zbigniew Siciarz
2014-03-25Fixed #22322 -- Fixed incorrect explanation of what managed=False does.Tim Graham
refs #14305. Thanks Adrian Klaver for the report.
2014-03-25flake8 and doc fixes for refs #22257.Tim Graham
2014-03-25Fixed #22257 -- Added file output option to dumpdata command.Anubhav Joshi
2014-03-22Fixed #22256 -- Replaced bad fallback for missing PATHPatrick Michaud
Thanks Baptiste Mispelon for the review.
2014-03-22Avoided transactional truncates on amateur databases.Aymeric Augustin
Fixed a test failure that appeared after 753a22a6, although the bug existed before that commit. Refs #22308.
2014-03-22Avoided transactional DDL on castrated databases.Aymeric Augustin
Fixed a test failure that appeared after 753a22a6, although the bug existed before that commit. Refs #22308.
2014-03-21Fixed transaction handling in two management commands.Aymeric Augustin
Previously, when createcachetable and flush operated on non-default databases, they weren't atomic.
2014-03-21Removed legacy transaction management per the deprecation timeline.Aymeric Augustin
2014-03-18Mentioned that ``dumpdata --natural`` is deprecated.Daniel Hahler
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.