summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2015-09-21[1.8.x] Corrected docstring in core.urlresolvers module.Matt Deacalion Stevens
The RegexURLResolver.resolve() method no longer returns a tuple. It has returned a ResolverMatch object since commit e0fb90b2. Backport of c07f9fef398a21a76d350e8b02b396b3e580b751 from master
2015-09-16[1.8.x] Fixed typo in django/core/cache/backends/base.py docstring.Matthew Crowson
Backport of 8615e415861ea93afb5a84365895bd7b9af7be6f from master
2015-09-15[1.8.x] Added upgrade tip in BaseCommand.option_list deprecation comment.Daniel Hahler
Backport of d731cf5caf043189fda3708cc0dace5d8f94db6b from master
2015-09-09[1.8.x] Fixed #25372 -- Fixed autocompletion for options of non-argparse ↵Daniel Hahler
commands. Backport of acb833081dd3abca3bc62753103690f23fb3f0ec from master
2015-08-29Fixed #24704 -- Made the autoreloader survive SyntaxErrors.Aymeric Augustin
With this change, it's expected to survive anything except errors that make it impossible to import the settings. It's too complex to fallback to a sensible behavior with a broken settings module. Harcoding things about runserver in ManagementUtility.execute is atrocious but it's the only way out of the chicken'n'egg problem: the current implementation of the autoreloader primarily watches imported Python modules -- and then a few other things that were bolted on top of this design -- but we want it to kick in even if the project contains import-time errors and django.setup() fails. At some point we should throw away this code and replace it by an off-the-shelf autoreloader that watches the working directory and re-runs `django-admin runserver` whenever something changes. Backport of fe6ddb837d from master
2015-08-07[1.8.x] Fixed #25231 -- Added recording of squashed migrations in the ↵mlavin
migrate command. Ensured squashed migrations are recorded as applied when the migrate command is run and all of the original migrations have been previously applied. Backport of 69db1c745506bf63026def25d6854755179feaa8 from master
2015-08-01[1.8.x] Fixed #25204 -- Added missing space in runserver logging.Tim Graham
Backport of 1a76257b1b385ac8afd67bd36d061f508613e4d2 from master
2015-07-22[1.8.x] Fixed import order in django/core/serializers/json.pyTim Graham
2015-07-14[1.8.x] Fixed #25123 -- Corrected makemessages --extension help textCesar Canassa
Backport of 561c018d88203826cb9fd370e03a28e829871b75 from master
2015-07-13[1.8.x] Fixed #25079 -- Added warning if both TEMPLATES and TEMPLATE_* ↵Daniel Roseman
settings are defined. Django ignores the value of the TEMPLATE_* settings if TEMPLATES is also set, which is confusing for users following older tutorials. This change adds a system check that warns if any of the TEMPLATE_* settings have changed from their defaults but the TEMPLATES dict is also non-empty. Removed the TEMPLATE_DIRS from the test settings file; this was marked for removal in 1.10 but no tests fail if it is removed now. Backport of 24620d71f2116da31abe6c9391f7bc807ac23c0b from master
2015-07-10[1.8.x] Fixed #25019 -- Added UUID support in DjangoJSONEncoderLukas Hetzenecker
Backport of 6355a6d4f5 and 2e05ef4e18 from master.
2015-07-08[1.8.x] Fixed catastrophic backtracking in URLValidator.Shai Berger
Thanks João Silva for reporting the problem and Tim Graham for finding the problematic RE and for review. This is a security fix; disclosure to follow shortly.
2015-07-08[1.8.x] Prevented newlines from being accepted in some validators.Tim Graham
This is a security fix; disclosure to follow shortly. Thanks to Sjoerd Job Postmus for the report and draft patch.
2015-07-06[1.8.x] Fixed #25059 -- Allowed Punycode TLDs in URLValidatorAlexey Sveshnikov
Backport of bc98bc56a52860688ea0ae2ec7b9e59ddb72a811 from master
2015-06-23[1.8.x] Renamed RemovedInDjango20Warning to RemovedInDjango110Warning.Tim Graham
2015-06-09[1.8.x] Fixed #24769 -- Cast optparse verbosity argument to an integer for ↵Rivo Laks
better backwards compatibility. Using `BaseCommand.options_list` makes Django use the legacy optparse parser, which does not set the verbosity attribute correctly. Now the verbosity argument is always cast to int. Regression in 8568638 (#19973). Initial report and patch from blueyed. Backport of a0047c6242fd48068eb444e0a58f7a5d2bc1bcd3 from master
2015-05-01[1.8.x] Fixed #23271 -- Fixed makemessages crash/test failure for some locales.daphshez
Backport of 57202a112a966593857725071ecd652a87c157fb from master
2015-04-14[1.8.x] Added missing periods in migrate help messages.Joe Borg
Backport of 503bbc49d894586934b520bafe116b2c40bb45ec from master
2015-04-04[1.8.x] Fixed #24571 -- Restored testserver positional arguments parsingClaude Paroz
Thanks Domas Lapinskas for the report and Tim Graham for the review. Backport of 426b63ba04 from master.
2015-04-02[1.8.x] Fixed typo in django.core.files.File docstring.Matt Hooks
Backport of 2c39f282b8389f47fee4b24e785a58567c6c3629 from master
2015-04-01[1.8.x] Refs #24500 -- Avoided locale.getpreferredencoding in makemessagesClaude Paroz
Fixes a regression introduced in 53c2cf1e. Backport of 3f4e77840 from master.
2015-03-21[1.8.x] Fixed #24500 -- Fixed makemessages encoding problems retrieving ↵Pakal
gettext version. Backport of 53c2cf1e7b3f1c9a7794fcc5c4669145f351b2fa from master
2015-03-16[1.8.x] Fixed #24427 -- Stopped writing migration files in dry run mode when ↵John Giannelos
merging. Also added display of migration to stdout when verbosity=3. Backport of 8758a63ddbbf7a2626bd84d50cfe83b477e8de0a from master
2015-02-22[1.8.x] Fixed a few uses of Template that relied on a default engine.Aymeric Augustin
Refs #24389. Backport of 556a748 from master
2015-02-20[1.8.x] Fixed #24351, #24346 -- Changed the signature of allow_migrate().Loic Bistuer
The new signature enables better support for routing RunPython and RunSQL operations, especially w.r.t. reusable and third-party apps. This commit also takes advantage of the deprecation cycle for the old signature to remove the backward incompatibility introduced in #22583; RunPython and RunSQL won't call allow_migrate() when when the router has the old signature. Thanks Aymeric Augustin and Tim Graham for helping shape up the patch. Refs 22583. Conflicts: django/db/utils.py Backport of bed504d70bede3431a213203c13a33905d6dbf77 from master
2015-02-19[1.8.x] Fixed typo in django.core.servers.basehttp message.Alex Vidal
Backport of e467919c6315be87abec72383ec1a81e2665ebec from master
2015-02-17[1.8.x] Refs #24324 -- Fixed makemessages crash when Django is installed in ↵Tim Graham
a non-ASCII path. Backport of 81a94cc616ab80decaa495cfa1c0c623527fc0e7 from master
2015-02-17[1.8.x] Refs #24324 -- Fixed management command discovery on non-ASCII paths.Tim Graham
Backport of 4a0aeac1b5cfb7b6229a01119a596afb38d8a2a0 from master
2015-02-13[1.8.x] Fixed #24320 - Used field.value_to_string() in serialization of ↵Andriy Sokolovskiy
foreign key. This fixes serialization of a ForeignKey to a UUIDField as the test indicates. Backport of 5c995dcfc251b55284e1ef16545acd2acad6be04 from master
2015-02-13[1.8.x] Fixed #24184 -- Prevented automatic soft-apply of migrationsMarkus Holtermann
Previously Django only checked for the table name in CreateModel operations in initial migrations and faked the migration automatically. This led to various errors and unexpected behavior. The newly introduced --fake-initial flag to the migrate command must be passed to get the same behavior again. With this change Django will bail out in with a "duplicate relation / table" error instead. Thanks Carl Meyer and Tim Graham for the documentation update, report and review. Backport of f287bec5833d75750fa6368bc2802741b7924533 from master
2015-02-09[1.8.x] Sorted imports with isort; refs #23860.Tim Graham
Backport of 0ed7d155635da9f79d4dd67e4889087d3673c6da from master
2015-01-14Removed unused importClaude Paroz
2015-01-13Stripped headers containing underscores to prevent spoofing in WSGI environ.Carl Meyer
This is a security fix. Disclosure following shortly. Thanks to Jedediah Smith for the report.
2015-01-12Fixed #17785 -- Preferred column names in get_relations introspectionClaude Paroz
Thanks Thomas Güttler for the report and the initial patch, and Tim Graham for the review.
2015-01-12Fixed #24129 -- Added indicator that migrations are rendering the initial stateMarkus Holtermann
Thanks Tim Graham for the review.
2015-01-12Fixed #9893 -- Allowed using a field's max_length in the Storage.Pavel Shpilev
2015-01-07Fixed #24073 -- Deactivated translations when leave_locale_alone is FalseClaude Paroz
Thanks Tim Graham and Markus Holtermann for the reviews.
2015-01-06Fixed #12663 -- Formalized the Model._meta API for retrieving fields.Daniel Pyrathon
Thanks to Russell Keith-Magee for mentoring this Google Summer of Code 2014 project and everyone else who helped with the patch!
2015-01-06Fixed #20003 -- Improved and extended URLValidatorDanilo Bargen
This adds support for authentication data (`user:password`) in URLs, IPv6 addresses, and unicode domains. The test suite has been improved by adding test URLs from http://mathiasbynens.be/demo/url-regex (with a few adjustments, like allowing local and reserved IPs). The previous URL validation regex failed this test suite on 13 occasions, the validator was updated based on https://gist.github.com/dperini/729294.
2015-01-06Fixed gettext version regexClaude Paroz
...with the theoretical assumption that gettext may once reach a two-digit number. Thanks Walter Doekes for noticing this potential issue.
2015-01-05Refs #23359 -- Removed double newline from output of migrate --listMarkus Holtermann
Thanks Berker Peksag for the review.
2015-01-05Fixed #8280 -- Allowed management command discovery for eggsClaude Paroz
Thanks jdetaeye for the report, bhuztez and jdetaeye for the initial patches, Tim Graham and Berker Peksag for the reviews.
2015-01-05Fixed #24072 -- Added FileResponse for streaming binary files.Collin Anderson
2015-01-02Fixed #9104 -- Moved FieldDoesNotExist to core.exceptionsDaniel Pyrathon
2015-01-02Show migration elapsed time when verbosity>1Claude Paroz
This facilitates performance debugging related to migrations.
2015-01-02Fixed #24069 -- Made ServerHandler a new style class to fix super() call.Andreas Pelme
2014-12-31Fixed #23366 -- Fixed a crash with the migrate --list command.Tim Graham
2014-12-31Fixed #24008 -- Fixed ValidationError crash with list of dicts.Andrey Maslov
2014-12-31Fixed #23359 -- Added showmigrations command to list migrations and plan.Markus Holtermann
Thanks to Collin Anderson, Tim Graham, Gabe Jackson, and Marc Tamlyn for their input, ideas, and review.
2014-12-29Fixed breakage by 6fb9dee4 under Python2+Windows.Ramiro Morales
Refs #23271