Simon Charette
f937c9ec97
Fixed #24100 -- Made the migration signals dispatch its plan and apps.
...
Thanks Markus for your contribution and Tim for your review.
2016-05-15 19:51:15 -04:00
Raphael Gaschignard
8f6a1a1551
Fixed #26429 -- Added a timestamp to merge migration names.
...
This reduces the possibility of a naming conflict, especially after
squashing migrations.
2016-05-11 08:19:19 -04:00
Jarek Glowacki
c8df17b612
Included reverse deps in showmigrations
2016-05-08 13:53:36 +02:00
Claude Paroz
4731e9d82e
Fixed #26341 (again) -- Addressed multiple occurrences per line use case
2016-05-02 19:39:56 +02:00
Claude Paroz
b16b124996
Fixed #26341 -- Fixed makemessages breaking location comments for HTML files
...
Thanks Sylvain Garancher for the report and Veranika Sabiashchanskaya for the
initial patch.
2016-04-30 12:08:20 +02:00
Berker Peksag
93deb1691e
Fixed #26492 -- Fixed "maximum recursion depth exceeded" migrate error.
...
A regression introduced in 0d3c616fbb2f49fa7ff6809e5a6777275352b35b;
refs #26351 .
2016-04-12 09:04:14 -04:00
Claude Paroz
0d3c616fbb
Refs #26351 -- Added check hook to support database-related checks
...
Thanks Tim Graham and Shai Berger for the reviews.
2016-04-08 20:28:00 +02:00
Tim Graham
df8d8d4292
Fixed E128 flake8 warnings in django/.
2016-04-08 09:51:06 -04:00
Attila Tovt
02ae5fd31a
Fixed #25850 -- Made migrate/makemigrations error on inconsistent history.
2016-04-05 08:52:08 -04:00
Dunedan
9378229c5e
Merge pull request #6389 from Dunedan/ticket_25420
...
Fixed #25420 -- Documented bash completion exit code behavior.
2016-04-03 11:52:57 +02:00
José Tomás Tocino
39a16dd2e0
Fixed #25658 -- Allowed inspectdb to inspect a specific set of tables.
2016-03-18 08:41:15 -04:00
Saúl Ibarra Corretgé
6c33e73333
Fixed #26289 -- Enabled shell tab completion on systems using libedit.
2016-03-08 08:37:14 -05:00
Jon Dufresne
1845bc1d10
Refs #26315 -- Cleaned up argparse options in commands.
...
* Removed type coercion. Options created by argparse are already coerced
to the correct type.
* Removed fallback default values. Options created by argparse already
have a default value.
* Used direct indexing. Options created by argparse are always set. This
eliminates the need to use dict.get().
2016-03-05 13:19:29 -05:00
Jon Dufresne
4115288b4f
Fixed #26315 -- Allowed call_command() to accept a Command object as the first argument.
2016-03-05 13:05:10 -05:00
Jon Dufresne
8d3fcfa39e
Cleaned up tests to use call_command() instead of Command.execute().
2016-03-05 12:59:30 -05:00
Jon Dufresne
394b7f90d3
Passed proper default value to int-type 'verbosity' option
2016-03-03 20:42:43 +01:00
Jon Dufresne
fb3540d6a4
Removed obsolete, unused option 'hide_empty' from loaddata command.
...
Unused since 67235fd4ef
.
2016-03-01 19:48:32 -05:00
Claude Paroz
4c18a8a378
Fixed #14098 -- Prevented crash for introspection errors in inspectdb
...
Thanks Tim Graham for the review.
2016-02-25 08:43:56 +01:00
Claude Paroz
b46c0ea6c8
Fixed #26190 -- Returned handle() result from call_command
...
Thanks Tim Graham for the review.
2016-02-23 09:12:12 +01:00
Mounir Messelmeni
50931dfa53
Fixed #25304 -- Allowed management commands to check if migrations are applied.
2016-02-12 13:34:56 -05:00
Roberto Rosario
408c406abc
Added a function for SECRET_KEY generation logic.
2016-02-11 08:07:59 -05:00
Simon Charette
275314512d
Refs #26144 -- Used proxy_for_model instead of mro inspection.
2016-02-05 12:14:32 -05:00
Pankrat
f91a04621e
Fixed #25833 -- Added support for non-atomic migrations.
...
Added the Migration.atomic attribute which can be set to False
for non-atomic migrations.
2016-02-05 09:09:05 -05:00
Yoong Kang Lim
0edb8a146f
Fixed #26144 -- Warned when dumping proxy model without concrete parent.
2016-02-04 19:40:12 -05:00
Simon Charette
d7db417f1a
Removed some leftover trailing commas.
2016-02-04 12:23:13 -05:00
Markus Holtermann
4b0118465b
Fixed #26150 -- Sorted app_labels in migrate command output
2016-01-29 10:26:04 +11:00
userimack
60586dd737
Fixed #26125 -- Fixed E731 flake warnings.
2016-01-25 14:23:43 -05:00
Chris Lamb
abc0777b63
Fixed #25968 -- Changed project/app templates to use a "py-tpl" suffix.
...
Debian packages unconditionally byte-compile .py files on installation and
do not silence errors by design. Therefore, we need a way of shipping these
invalid .py files without a .py extension but ensuring that when we
template them, they end up as .py.
We don't special-case .py files so that the all the TemplateCommand
command-line options (eg. extra_files and extensions) still work entirely
as expected and it may even be useful for other formats too.
2016-01-25 12:39:06 -05:00
Tim Graham
e519aab43a
Fixed #23868 -- Added support for non-unique django-admin-options in docs.
...
Also documented missing short command line options to fix #24134 . This bumps
the minimum sphinx version required to build the docs to 1.3.4.
Thanks Simon Charette for review.
2016-01-14 18:21:33 -05:00
Tim Graham
5b94b17fef
Fixed #25999 -- Removed promotion of RemovedInNextVersionWarning to loud by default.
2016-01-14 09:05:43 -05:00
Niels Van Och
7f7553dd30
Fixed #25680 -- Added django-admin shell --command option.
...
Add a -c option to the shell command to execute a command passed as a
string as Django.
2016-01-06 18:43:41 -05:00
Andrew Kuchev
d5b90c8e12
Fixed #21549 -- Made loaddata's 'fixture not found' warning an exception.
...
Thanks to mpasternak for the report and Tim Graham for the review.
2016-01-04 19:39:35 -05:00
Anssi Kääriäinen
ee9f4686b1
Fixed #23372 -- Made loaddata faster if it doesn't find any fixtures.
...
Django's test suite often tries to load fixture files from apps that have
no fixtures at all. This creates a lot of unnecessary disabling and
enabling of constraints which can be expensive on some database.
To speed this up, loaddata now first checks if any fixture file matches.
If no fixture file is matched, then the command exits before disabling
and enabling of constraints is done.
The main benefit of this change is seen on MSSQL, where tests on
Django 1.8 run hours faster.
2015-12-31 09:00:44 -05:00
Jon Dufresne
f1628f6be1
Fixed #25838 -- Added "python" as an interface to the shell command.
...
Deprecates the "--plain" option.
2015-12-22 08:22:12 -05:00
Tim Graham
b10f66831b
Fixed #25958 -- Removed support for 'skip_validation' in BaseCommand.execute(**options).
2015-12-21 14:26:42 -05:00
Emre Yilmaz
63a6a653d4
Fixed #25855 -- Enhanced the migration warning for runserver.
...
Added unapplied migration count and the list of unmigrated apps.
2015-12-21 12:54:29 -05:00
Niels Van Och
99a1265a39
Fixed #25063 -- Added path to makemigration's output of migration file.
2015-12-18 11:20:00 -05:00
Josh Soref
93452a70e8
Fixed many spelling mistakes in code, comments, and docs.
2015-12-03 12:48:24 -05:00
Jacek Bzdak
2cb50f935a
Fixed #25274 --- Made inspectdb handle renamed fields in unique_together.
2015-11-25 13:07:00 -05:00
Claude Paroz
fa08d27fb7
Fixed #25677 -- Prevented decoding errors in/after Popen calls
...
Thanks Gavin Wahl for the report and Tim Graham for the review.
2015-11-19 15:17:47 +01:00
Tim Graham
c7adfe941b
Removed redundant termcolors.
...
Replaced MIGRATE_SUCCESS and MIGRATE_FAILURE with
SUCCESS and ERROR.
2015-11-18 10:26:39 -05:00
Dmitry Dygalo
92eced62cd
Simplified lists creation in three places.
2015-11-17 07:58:49 -05:00
Baptiste Mispelon
9bc0c21b1c
Made BaseCommand.get_version() docstring consistent with docs.
2015-11-14 07:58:58 -05:00
Jon Dufresne
5d35b53c36
Removed hardcoded utf-8 BOM, used value from codecs instead.
2015-10-25 09:28:11 -07:00
Jon Dufresne
3c7d2ee881
Fixed #25604 -- Added makemigrations --check option.
...
Command exits with non-zero status if changes without migrations exist.
2015-10-24 14:45:00 -04:00
Yoong Kang Lim
3f300efede
Fixed #25589 -- Allowed startapp/project to create apps with Unicode characters in the name.
2015-10-22 13:01:07 -04:00
Aymeric Augustin
df0a446fd4
Fixed #25510 -- Allowed runserver to start with incorrect INSTALLED_APPS.
...
In that case, the content of INSTALLED_APPS will be ignored until it's
fixed and the autoreloader kicks in. I confirmed this behavior manually.
As explained on the ticket it's hard to write a test for this case
2015-10-18 10:34:04 +02:00
Jon Dufresne
2875325889
Fixed #25500 -- Added --fail-level option to check command.
...
This option specifies the level that check command exits with a
non-zero status. Default is ``ERROR``.
2015-10-05 17:11:40 -04:00
Claude Paroz
3f22e83e90
Fixed #25483 -- Allowed passing non-string arguments to call_command
...
Thanks KS Chan for the report and Tim Graham for the review.
2015-10-03 14:40:33 +02:00
Tim Graham
b4002a2143
Refs #22835 -- Removed NoArgsCommand per deprecation timeline.
2015-09-23 19:31:10 -04:00