summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2014-04-26Fixed #22328 -- Added --exclude option to compilemessages and makemessages.Ana Krivokapic
2014-04-23Fixed #21157 -- Fixed problems with ResolverMatchKevin Christopher Henry
- Fixed bug in get_callable() that caused resolve() to put a string in ResolverMatch.func. - Made ResolverMatch.url_name match the actual url name (or None). - Updated tests that used the string value in ResolverMatch.func, and added regression tests for this bug. - Corrected test urls whose dummy view paths caused failures (behavior that was previously masked by this bug).
2014-04-23Set compile messages options as class variableClaude Paroz
Refs #18714. Same logic as options for makemessages commands.
2014-04-23Fixed #22495 -- Locmem cache.add() failed with infinite timeoutsMalcolm Box
cache.add() incorrectly succeeded when there was an existing key with an infinite (None) timeout.
2014-04-23Fixed #22486 -- Restored the ability to reverse views created using ↵Preston Timmons
functools.partial. Regression in 8b93b31487d6d3b0fcbbd0498991ea0db9088054. Thanks rcoup for the report.
2014-04-21Fixed a remote code execution vulnerabilty in URL reversing.Tim Graham
Thanks Benjamin Bach for the report and initial patch. This is a security fix; disclosure to follow shortly.
2014-04-21Fixed migrate when called inside a transaction.Florian Apolloner
This is useful for tests manually calling migrate inside a testcase, for normal usage this should make no difference, since there is no surrounding transaction after all. If there is one we still try to leave the transaction in a useable state (for postgres at least). If this commit turns out to be causing issues, settings savepoint=False is probably the right fix :)
2014-04-21Appeased flake8 2.1.0.Aymeric Augustin
2014-04-18Adapted fixture read mode to file typeClaude Paroz
Binary mode added in ed532a6a1e is not supported by ZipFile. Refs #22399.
2014-04-18Fixed #22399 -- Forced fixture reading in binary modeClaude Paroz
This might help on systems where default encoding is not UTF-8 (and on Python 3). Thanks bacilla for the report.
2014-04-17Fixed #22454 - Changed compatibility warning hintMoayad Mardini
The warning hint of `_check_test_runner` of 1.6 compatibility had a link to a general release note. The link should be edited to refer the relevant "Backwards incompatible changes in 1.6" section that documents the cause and the possible solutions and workarounds of the warning.
2014-04-16Revert "Fixed #22401 -- Deprecated regular expression parsing of initial SQL ↵Tim Graham
in favor of installing sqlparse." This reverts commit 071c9337750b296d198cced56f3ffad0e176afb6. This introduced a regression on MySQL and custom SQL is deprecated.
2014-04-10Fixed #22194 -- Added --list-tags option to check command.Tim Graham
Thanks Elvard for the patch.
2014-04-10Fixed #22195 -- Used constants to define built-in tags for check framework.Tim Graham
Thanks Elvard for the patch.
2014-04-09Fixed #22401 -- Deprecated regular expression parsing of initial SQL in ↵julien 'pouete' Godin
favor of installing sqlparse.
2014-03-31Fixed #22327 -- Turned BaseEmailBackend into a context managerDaniel Neuhäuser
Changed the BaseEmailBackend to allow usage as context manager to open and close connections.
2014-03-30Moved ServerHandler helper class to tests.Ramiro Morales
It has been only used in the builtin_servers tests since Django 1.4.
2014-03-30Corrected many style guide violations that the newest version of flake8 catchesAlex Gaynor
2014-03-26Fixed #22335 -- Fixed popen_wrapper error on non-English Windows systems.Zbigniew Siciarz
2014-03-25Fixed #22322 -- Fixed incorrect explanation of what managed=False does.Tim Graham
refs #14305. Thanks Adrian Klaver for the report.
2014-03-25flake8 and doc fixes for refs #22257.Tim Graham
2014-03-25Fixed #22257 -- Added file output option to dumpdata command.Anubhav Joshi
2014-03-22Fixed a failing test introduced in 918a16bc4c099ab0cae72a231de3e99e2a9d02cb.Baptiste Mispelon
Refs #22307.
2014-03-22Fixed #22256 -- Replaced bad fallback for missing PATHPatrick Michaud
Thanks Baptiste Mispelon for the review.
2014-03-22Avoided transactional truncates on amateur databases.Aymeric Augustin
Fixed a test failure that appeared after 753a22a6, although the bug existed before that commit. Refs #22308.
2014-03-22Avoided transactional DDL on castrated databases.Aymeric Augustin
Fixed a test failure that appeared after 753a22a6, although the bug existed before that commit. Refs #22308.
2014-03-21Fixed #22307 -- Fixed SpooledTemporaryFile bug in File class.Hans Lawrenz
Added condition to prevent checking the existence of a file name of a file like object when the name attribute is None. This is necessary because a SpooledTemporaryFile won't exist on the file system or have a name until it has reached its max_size. Also added tests.
2014-03-21Fixed transaction handling in two management commands.Aymeric Augustin
Previously, when createcachetable and flush operated on non-default databases, they weren't atomic.
2014-03-21Removed legacy transaction management per the deprecation timeline.Aymeric Augustin
2014-03-21Removed PIL compatability layer per deprecation timeline.Tim Graham
refs #19934.
2014-03-21Fixed #22255 -- Added support for specifying re flags in RegexValidatorDejan Noveski
2014-03-18Fixed regression in file locking on some platforms.smallcode
Some platforms with os.name == 'posix' do not have the fcntl module, e.g. AppEngine. refs #19373.
2014-03-18Mentioned that ``dumpdata --natural`` is deprecated.Daniel Hahler
2014-03-08Fix bad conflict detection during makemigrationsAndrew Godwin
2014-03-08Fixed #21188 -- Introduced subclasses for to-be-removed-in-django-XX warningsClaude Paroz
Thanks Anssi Kääriäinen for the idea and Simon Charette for the review.
2014-03-06Added --previous flag to msgmerge command used by makemessagesClaude Paroz
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-05Fixed #7571 -- Fixed parameter matching in include()'d urlpatternAthena
Fixed URL resolving in the case where an outer regex includes an inner regex and both regexes use positional parameters instead of named groups, causing the outer regex's parameters to override the inner regex's. Modified the regex url resolver so that it will concatenates and then normalizes, instead of normalizing and then concatenating.
2014-03-04Fixed #22085 -- Added a feature for setting non-expiring keys as the default.zedr
This feature allows the default `TIMEOUT` Cache argument to be set to `None`, so that cache instances can set a non-expiring key as the default, instead of using the default value of 5 minutes. Previously, this was possible only by passing `None` as an argument to the set() method of objects of type `BaseCache` (and subtypes).
2014-03-03Fixed many typos in comments and docstrings.Rodolfo Carvalho
Thanks Piotr Kasprzyk for help with the patch.
2014-03-03Corrected expected test output to allow for cleanups in signal and ↵Russell Keith-Magee
compatibility checks.
2014-03-03Added backwards compatibliity checks to reference documentation.Russell Keith-Magee
2014-03-03Fixed #22193 -- Made hint a truly optional arugment on check messages.Russell Keith-Magee
Thanks to Thomas Güttler for the suggestion.
2014-03-03Edited model and field checks for grammar and consistency.Russell Keith-Magee
2014-02-22Fixed #22123 -- EmailValidator now also accepts IPv6 literals in addressesErik Romijn
2014-02-22Fixed #21435 -- Improved error message when urlconf is empty.Baptiste Mispelon
The new error message now hints that the most likely issue is a circular import. Thanks to trac user elena for the report and to bpeschier for the original patch.
2014-02-20Fixed #22107 -- Fixed django.core.files.File object iteration.Baptiste Mispelon
Due to a mixup between text and bytes, iteration over a File instance was broken under Python 3. Thanks to trac user pdewacht for the report and patch.
2014-02-18Made content_type_extra optional for TemporaryUploadedFile and ↵Dmitro
MemoryUploadedFile. This provides better backwards compatibility for those constructing these objects manually. Refs #13721.
2014-02-18Fixed #21732 -- Made compilemessages complain about non-writable locationClaude Paroz
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-18Removed BaseCommand.stdin introduced in ↵Baptiste Mispelon
116d39842dab2569013856e9f3701a7cb6554f09. 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-17Added the possibility to pass a stdin object to a management command.Baptiste Mispelon
This makes testing certain features easier. Thanks to AeroNotix for the original patch.