Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/django/db/migrations/questioner.py
Commit message (Collapse)AuthorAgeFilesLines
* Fixed #25453 -- Reworded makemigration's ↵Benjamin Wohlwend2015-09-231-2/+2
| | | | ask_not_null_alteration suggestion.
* Fixed #25308 -- Made MigrationQuestioner respect ↵Jeremy Satterfield2015-08-261-2/+2
| | | | MIGRATION_MODULES setting.
* Fixed #23407 -- Extended coverage of makemigrations ↵Marten Kenbeek2015-03-081-0/+11
| | | | | | | --noinput option. Changed --noinput option in makemigrations to suppress all user prompts, not just when combined with --merge.
* Limited lines to 119 characters in django/{contrib,db}.Berker Peksag2014-10-291-2/+6
| | | | Refs #23395.
* Fixed #23609 -- Fixed IntegrityError that prevented ↵Markus Holtermann2014-10-091-24/+56
| | | | | | altering a NULL column into a NOT NULL one due to existing rows Thanks to Simon Charette, Loic Bistuer and Tim Graham for the review.
* Fixed #23365 -- Added support for timezone-aware ↵Rudy Mutter2014-09-301-3/+4
| | | | datetimes to migrations.
* Fixed #22676 -- makemigrations --dry-run should not ask ↵Moayad Mardini2014-05-241-32/+35
| | | | | | | | | | for defaults 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.
* Added a bunch of missing unicode_literalsClaude Paroz2014-05-061-0/+2
| | | | Refs #22564.
* Fixed #22239 -- Add auto detection of renamed modelsChris Beaven2014-03-101-0/+8
|
* Fixed #21868: Don't die when seeing py3 namespace ↵Andrew Godwin2014-02-091-1/+6
| | | | packages for mig dirs
* Fix unicode default input on py3Andrew Godwin2014-01-191-2/+8
|
* Fixed #21784: Correctly decode stdin input for migration ↵Andrew Godwin2014-01-161-1/+1
| | | | defaults
* Created a constant for the migrations module name.Aymeric Augustin2013-12-271-1/+3
| | | | Mostly for consistency with MODELS_MODULE_NAME; it's unlikely to change.
* Renamed AppCache to Apps.Aymeric Augustin2013-12-241-2/+2
| | | | | | Also renamed app_cache to apps and "app cache" to "app registry". Deprecated AppCache.app_cache_ready() in favor of Apps.ready().
* Moved apps back in the toplevel django namespace.Aymeric Augustin2013-12-221-1/+1
| | | | Reverted 4a56a93cc458e9ab4dcab95d9f5067d4975dd1a2.
* Moved the new app cache inside core.Aymeric Augustin2013-12-171-1/+1
|
* Deprecated get_app().Aymeric Augustin2013-12-171-4/+3
|
* Removed module-level functions for the app cache.Aymeric Augustin2013-12-171-2/+2
| | | | | | | | | | | | | | | Since the original ones in django.db.models.loading were kept only for backwards compatibility, there's no need to recreate them. However, many internals of Django still relied on them. They were also imported in django.db.models. They never appear in the documentation, except a quick mention of get_models and get_app in the 1.2 release notes to document an edge case in GIS. I don't think that makes them a public API. This commit doesn't change the overall amount of global state but clarifies that it's tied to the app_cache object instead of hiding it behind half a dozen functions.
* Moved django.db.models.loading to django.apps.cache.Aymeric Augustin2013-12-171-1/+1
| | | | This commit doesn't contain any code changes; it's purely a refactoring.
* Removed unreachable `else` in `try` block.maurycyp2013-12-061-2/+0
|
* Migration VCS conflict detection and --merge for ↵Andrew Godwin2013-12-041-0/+122
makemigrations