mirror of
https://github.com/django/django.git
synced 2025-03-13 19:00:45 +00:00
Corrected multiple typos.
This commit is contained in:
parent
d7673d9eda
commit
4f7328ce8a
@ -465,10 +465,10 @@ class BaseCommand:
|
|||||||
apps_waiting_migration = sorted({migration.app_label for migration, backwards in plan})
|
apps_waiting_migration = sorted({migration.app_label for migration, backwards in plan})
|
||||||
self.stdout.write(
|
self.stdout.write(
|
||||||
self.style.NOTICE(
|
self.style.NOTICE(
|
||||||
"\nYou have %(unpplied_migration_count)s unapplied migration(s). "
|
"\nYou have %(unapplied_migration_count)s unapplied migration(s). "
|
||||||
"Your project may not work properly until you apply the "
|
"Your project may not work properly until you apply the "
|
||||||
"migrations for app(s): %(apps_waiting_migration)s." % {
|
"migrations for app(s): %(apps_waiting_migration)s." % {
|
||||||
"unpplied_migration_count": len(plan),
|
"unapplied_migration_count": len(plan),
|
||||||
"apps_waiting_migration": ", ".join(apps_waiting_migration),
|
"apps_waiting_migration": ", ".join(apps_waiting_migration),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
@ -113,7 +113,7 @@ def parse_apps_and_model_labels(labels):
|
|||||||
def get_command_line_option(argv, option):
|
def get_command_line_option(argv, option):
|
||||||
"""
|
"""
|
||||||
Return the value of a command line option (which should include leading
|
Return the value of a command line option (which should include leading
|
||||||
dashes, e.g. '--testrunnner') from an argument list. Return None if the
|
dashes, e.g. '--testrunner') from an argument list. Return None if the
|
||||||
option wasn't passed or if the argument list couldn't be parsed.
|
option wasn't passed or if the argument list couldn't be parsed.
|
||||||
"""
|
"""
|
||||||
parser = CommandParser(add_help=False, allow_abbrev=False)
|
parser = CommandParser(add_help=False, allow_abbrev=False)
|
||||||
|
@ -35,7 +35,7 @@ class SimplifiedURLTests(SimpleTestCase):
|
|||||||
self.assertEqual(match.kwargs, {'year': 2015})
|
self.assertEqual(match.kwargs, {'year': 2015})
|
||||||
self.assertEqual(match.route, 'articles/<int:year>/')
|
self.assertEqual(match.route, 'articles/<int:year>/')
|
||||||
|
|
||||||
def test_path_lookup_with_multiple_paramaters(self):
|
def test_path_lookup_with_multiple_parameters(self):
|
||||||
match = resolve('/articles/2015/04/12/')
|
match = resolve('/articles/2015/04/12/')
|
||||||
self.assertEqual(match.url_name, 'articles-year-month-day')
|
self.assertEqual(match.url_name, 'articles-year-month-day')
|
||||||
self.assertEqual(match.args, ())
|
self.assertEqual(match.args, ())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user