| Age | Commit message (Collapse) | Author |
|
Thanks Tim Graham for the review.
|
|
Thanks Tim Graham and Markus Holtermann for the reviews.
|
|
...with the theoretical assumption that gettext may once reach a
two-digit number. Thanks Walter Doekes for noticing this potential
issue.
|
|
Thanks Berker Peksag for the review.
|
|
Thanks jdetaeye for the report, bhuztez and jdetaeye for the
initial patches, Tim Graham and Berker Peksag for the reviews.
|
|
This facilitates performance debugging related to migrations.
|
|
|
|
Thanks to Collin Anderson, Tim Graham, Gabe Jackson, and Marc Tamlyn
for their input, ideas, and review.
|
|
Refs #23271
|
|
Thanks kabakov.as@gmail.com for the report, and Aymeric Augustin,
Simon Charette for the reviews.
|
|
Make sure PO catalog text fetched from gettext programs via standard
output isn't corrupted by mismatch between assumed (UTF-8) and real
(CP1252) encodings. This can cause mojibake to be written when creating
or updating PO files.
Also fixes #23311.
Thanks to contributor with Trac nick 'danielmenzel' for the report,
excellent research and fix.
|
|
sqlall will be removed in Django 1.9, so now's a good time to remove
its usage where it's not important.
|
|
|
|
|
|
Also used schema editor in migrate to sync unmigrated apps (sync_apps).
Refs #22340. Thanks Tim Graham for the review.
|
|
Thanks Tim Graham for the report and initial patch.
|
|
Thanks kmmbvnr for the report.
|
|
Thanks Kenial S. Lee for the initial patch and Tim Graham for
the review.
|
|
comprehension
|
|
|
|
|
|
If no changes that need migrations are found, `makemigrations --exit`
exits with error code 1.
|
|
|
|
A lambda all_items_equal() replaced a reduce() that was broken for potential
3+-way merges. A reduce(operator.eq, ...) accumulates bools and can't
generically check equality of all items in a sequence:
>>> bool(reduce(operator.eq, [('migrations', '0001_initial')] * 3))
False
The code now counts the number of common ancestors to calculate slice offsets
for the branches. Each branch shares the same number of common ancestors.
The common_ancestor for loop statement had incomplete branch coverage.
|
|
|
|
Thanks to yamila-moreno for the idea of a skip message.
|
|
Thanks Berker Peksag for the suggestion.
|
|
makemessages now doesn't need any special ignoring logic, after
commit bb4a92d784.
|
|
Changed the handling of extensions to be used for gettext. Now
obeying the --extension argument. find_files now only find the
given or default extensions and puts only these in the
TranslatableFiles. As a result there are no more confusing messages
for filetypes (extension) not handled by makemessages.
|
|
`io.open` is required on Python 2.7. Just `open` would work on Python 3.
|
|
JavaScript string extraction support has been added in gettext
0.18.3.
Thanks Aymeric Augustin for the review.
|
|
If settings.FIXTURE_DIRS contains duplicates or a default fixture
directory (app_name/fixtures), ImproperlyConfigured is raised.
Thanks to Berker Peksag and Tim Graham for review.
|
|
|
|
|
|
migrations.
|
|
This includes the following improvements:
- The type of the style object is now called 'Style' rather than 'dummy'.
- The new make_style() function allows generating a Style object directly
from a config string. Before the only way to get a style object was
through the environ and it also required that the terminal supported
colors which isn't necessarily the case when testing.
- The output of no_style() is now cached with @lru_cache.
- The output of no_style() now has the same set of attributes as the
other Style objects. Previously it allowed anything to pass through
with __getattr__.
|
|
Thanks Tim Graham for the review.
|
|
This helps with testability of management commands.
Thanks to trac username daveoncode for the report and to
Tim Graham and Claude Paroz for the reviews.
|
|
Fixed a regression introduced by 28efafa24c.
Thanks Michal Čihař for the report and initial patch, and
Collin Anderson and Tim Graham for the reviews.
|
|
This commit reverts 67d7da5fb9498b811f0168f5df2308ad4743027f.
The previous fix changed the environment globally, which meant
that any call to `call_command(no_color=True)` prevented further
`call_command` with color.
This fix still relies on the environment because it's currently the only
way to reach WSGIRequestHandler, but it's now limited to the `runserver`
command. This seems an acceptable compromise considering `runserver` runs
indefinitely.
Thanks Tim Graham for the review.
|
|
Thanks Paul Dejean for the report.
|
|
|
|
This reverts commit 8d6e1afe0be0570253a508f43e2ef89ae640984e.
call_command now always set skip_checks to True (tested in
user_commands).
|
|
Thanks Loic Bistuer for the report/review and Tim Graham for the
review.
|
|
|
|
|
|
Thanks Ilya Baryshev for the report and Tim Graham for the review.
|
|
|
|
paths on Windows.
|
|
Thanks Collin Anderson for the review.
|