Andrew Godwin
0dd737a719
[1.7.x] Fixed #22487 : Don't flush out data from before normal TestCases
2014-06-23 20:25:52 -07:00
Andrew Godwin
72d1c4a6dd
[1.7.x] Clean up syncdb parts of migrate output if no synced apps
2014-06-22 13:03:44 -07:00
Huu Nguyen
d9a83d597e
[1.7.x] Fixed #22862 -- Added --noinput option to makemigrations.
...
Thanks artortenburger for the report.
Backport of fbb684d95e
from master
2014-06-20 09:10:43 -04:00
Claude Paroz
9005894233
[1.7.x] Swapped placeholders in [sql]migrate command error
...
Backport of b67e9ed8c9
from master.
2014-06-20 13:55:12 +02:00
Andrew Godwin
bfe5f72c7e
[1.7.x] Fixed #22863 : Improve clarity of makemigrations for non-db params
2014-06-19 23:42:27 -07:00
Andrew Godwin
11b8e6154b
[1.7.x] Fixed #22848 : Ignore no-migrations errors during makemigrations only
2014-06-16 09:59:06 -07:00
Tim Graham
0767055dfc
[1.7.x] Fixed #22770 -- Removed create_superuser from post_migrate signals.
...
Moved logic to syncdb command for backwards compatibility.
Backport of 93d05536fd
from master
2014-06-10 15:00:12 -04:00
Andrew Godwin
08218252d8
[1.7.x] Fixed #22487 : Optional rollback emulation for migrated apps
...
Conflicts:
django/db/backends/creation.py
django/test/runner.py
docs/ref/settings.txt
docs/topics/testing/advanced.txt
2014-06-08 19:33:52 -07:00
Andrew Godwin
55fa4c2d34
[1.7.x] Fixed #22777 : Add dependency on through for autodetected M2M adds
2014-06-08 17:13:11 -07:00
Víðir Valberg Guðmundsson
3fc4f03895
[1.7.x] Fixed #22749 : Making SQL management commands migration aware.
2014-06-07 17:18:43 -07:00
Florian Apolloner
ba31e45f08
[1.7.x] Revert "Making SQL management commands migration aware."
...
This reverts commit cb9c9a7b58
.
Backport of 83e7555ffe
from master.
2014-06-01 12:01:29 +02:00
Andrew Godwin
4956e182ac
[1.7.x] Fix test failure caused by 3149cdce32
2014-05-29 15:36:49 -07:00
Víðir Valberg Guðmundsson
b6a960cd1d
[1.7.x] Making SQL management commands migration aware.
2014-05-29 15:36:30 -07:00
Alex Gaynor
3d98941d5c
[1.7.x] Fixed several typos in Django
...
Backport of 1dcc603eff
from master
2014-05-29 07:53:02 -04:00
Claude Paroz
91ef348bd6
[1.7.x] Fixed #21630 -- Simplified management command discovery
...
Thanks Aymeric Augustin for the report end the review.
Backport of fe53bc524
from master.
2014-05-28 09:35:43 +02:00
Aymeric Augustin
430faebe3b
[1.7.x] Fixed #22699 -- Configure default settings in some management commands.
...
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.
Backport of 4865326f
from master.
2014-05-27 21:46:30 +02:00
Moayad Mardini
c0a56001e0
[1.7.x] Fixed #22675 -- makemigrations --dry-run to output migrations to stdout.
...
`makemigrations --dry-run` will output the complete migrations file
that would be written if it's used along with `--verbosity 3`.
Backport of 2e613ea5c5
from master
2014-05-26 20:03:41 -04:00
Moayad Mardini
a59870e217
[1.7.x] Fixed #22676 -- makemigrations --dry-run should not ask 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.
Backport of ee14961a2a
from master
2014-05-24 09:56:43 -04:00
Claude Paroz
cdfefbec72
[1.7.x] Applied unicode_literals to makemessages command
...
This also fixes #22686 as some sort of side-effect.
Backport of dbb48d2bb9
from master.
2014-05-24 13:12:56 +02:00
Claude Paroz
db2aacff99
[1.7.x] Updated Django makemessages process
...
makemessages should now automatically distribute translatable
strings in the proper locale files, for Django too
(see 50a8ab7cd1
).
Backport of 7999ed9b69
from master.
2014-05-19 09:30:59 +02:00
Claude Paroz
e8a7436941
[1.7.x] Harmonized some PEP 0263 coding preambles
...
Backport of e520a73ee
from master.
2014-05-15 20:01:31 +02:00
Claude Paroz
189bcb9b09
[1.7.x] Removed unused imports in makemigrations
...
Backport of fc32e9c0d
from master.
2014-05-08 19:40:48 +02:00
Andrew Godwin
2afb6e0526
[1.7.x] Fixed #22576 : Ensure makemigrations doesn't touch the database.
2014-05-06 22:42:53 -07:00
Andrew Godwin
6ca5367869
[1.7.x] Cleanup failing test w/contenttypes and remove useless graph load
2014-04-30 15:12:18 -07:00
Andrew Godwin
35c2a14a49
[1.7.x] Fixed #22485 : Include all unmigrated apps in project state by default.
2014-04-30 12:26:11 -07:00
Tim Graham
a2cac1b68d
[1.7.x] Removed unused import.
...
Backport of d9c272b22f
from master
2014-04-30 07:27:56 -04:00
Bruno Ribeiro da Silva
72493b1b7c
[1.7.x] Fixed #22511 -- Added args to migrations management commands.
...
Backport of 83413c53d2
from master
2014-04-30 07:20:44 -04:00
Ramiro Morales
62bbfba3aa
[1.7.x] Removed bogus, ineffective 'U' flag from codecs.open() call.
...
2df7238512
from master.
2014-04-29 07:52:43 -03:00
Aymeric Augustin
3bb0f118ca
[1.7.x] Fixed #3214 -- Stopped parsing SQL with regex.
...
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 .
Backport of 8b5b199
from master
2014-04-26 17:46:57 +02:00
Claude Paroz
0424c84d54
[1.7.x] Set compile messages options as class variable
...
Refs #18714 . Same logic as options for makemessages commands.
Backport of 3a435a057
from master.
2014-04-23 15:16:38 +02:00
Aymeric Augustin
62eb79fc4c
[1.7.x] Appeased flake8 2.1.0.
...
Backport of 428c0bbe1b
from master
2014-04-21 07:50:50 -04:00
Alex Gaynor
50dddbdfc7
[1.7.x] Corrected many style guide violations that the newest version of flake8 catches
...
Backport of 778ce245dd
from master
2014-04-21 07:50:43 -04:00
Claude Paroz
13340df769
[1.7.x] Adapted fixture read mode to file type
...
Binary mode added in ed532a6a1e
is not supported by ZipFile.
Refs #22399 .
Backport of 275811a93
from master.
2014-04-18 19:24:39 +02:00
Claude Paroz
8d7023dc71
[1.7.x] Fixed #22399 -- Forced fixture reading in binary mode
...
This might help on systems where default encoding is not UTF-8 (and
on Python 3).
Thanks bacilla for the report.
Backport of ed532a6a1
from master.
2014-04-18 17:56:14 +02:00
Tim Graham
ddd25b280f
[1.7.x] Fixed #22194 -- Added --list-tags option to check command.
...
Thanks Elvard for the patch.
Backport of 395d75ea6b
from master
2014-04-10 09:44:43 -04:00
Tim Graham
7eaf329ad3
[1.7.x] Fixed #22322 -- Fixed incorrect explanation of what managed=False does.
...
refs #14305 .
Thanks Adrian Klaver for the report.
Backport of 9b7ba8af1b
from master
2014-03-25 14:03:02 -04:00
Patrick Michaud
908bdea482
[1.7.x] Fixed #22256 -- Replaced bad fallback for missing PATH
...
Thanks Baptiste Mispelon for the review.
Backport of acee46fc9
from master.
2014-03-22 16:54:02 +01:00
Daniel Hahler
fc167c9b5e
Mentioned that ``dumpdata --natural`` is deprecated.
2014-03-18 07:25:37 -04:00
Andrew Godwin
28779abb75
Fix bad conflict detection during makemigrations
2014-03-08 13:53:20 -08:00
Claude Paroz
210d0489c5
Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warnings
...
Thanks Anssi Kääriäinen for the idea and Simon Charette for the
review.
2014-03-08 09:57:40 +01:00
Claude Paroz
06efeae598
Added --previous flag to msgmerge command used by makemessages
...
Also took the opportunity to slightly refactor gettext options
so as to ease customization by subclassing the command.
Thanks Michal Čihař for the report and initial patch.
2014-03-06 10:20:01 +01:00
Rodolfo Carvalho
0d91225892
Fixed many typos in comments and docstrings.
...
Thanks Piotr Kasprzyk for help with the patch.
2014-03-03 07:38:09 -05:00
Claude Paroz
621c5cf4a5
Fixed #21732 -- Made compilemessages complain about non-writable location
...
Instead of crashing with a CommandError, now a non-writable location
of mo files will only make compilemessages complain and continue.
Thanks Ramiro Morales for the review.
2014-02-18 13:38:06 +01:00
Baptiste Mispelon
2a9ee49f3c
Removed BaseCommand.stdin introduced in 116d39842d
.
...
This option is not actually very useful in the general case
because it doesn't override sys.stdin.
It's still marginally useful for testing some features of
the createsuperuser command so it was moved there.
This commit also makes the detection of a TTY in createsuperuser
a bit more robust, after a suggestion of appolo13.
2014-02-18 11:36:06 +01:00
Baptiste Mispelon
116d39842d
Added the possibility to pass a stdin object to a management command.
...
This makes testing certain features easier.
Thanks to AeroNotix for the original patch.
2014-02-17 04:58:31 +01:00
Andrew Godwin
f0f1ba75b0
Fixed #21856 : Don't crash runserver when DATABASES = {}
2014-02-12 19:09:43 +00:00
Andrew Godwin
7e941ba67c
Reverting unapplied migrations check away from being a system-level check.
...
This reverts commit 0ac13ecceb
.
2014-02-12 18:55:20 +00:00
Andrew Godwin
b333de0f5d
Add --empty option to makemigrations
2014-02-12 17:16:40 +00:00
Eli Bendersky
73f51e4113
Fixed #22025 -- Listing app followed by app.Model in dumpdata command
...
When invoked as follows:
$ python manage.py dumpdata blogapp blogapp.Tag
Django would throw a TypeError. This commit fixes the problem and provides
a test.
2014-02-12 15:34:26 +01:00
Andrew Godwin
d5df7a0515
Fixed #21969 : Fix behaviour of initial_data with migrated apps
2014-02-09 12:22:59 +00:00