summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2014-11-11Removed import forgotten in previous commit.Aymeric Augustin
2014-11-11Fixed #23788 -- Used new JavaScript support in recent gettextClaude Paroz
JavaScript string extraction support has been added in gettext 0.18.3. Thanks Aymeric Augustin for the review.
2014-11-11Raised SuspiciousFileOperation in safe_join.Aymeric Augustin
Added a test for the condition safe_join is designed to prevent. Previously, a generic ValueError was raised. It was impossible to tell an intentional exception raised to implement safe_join's contract from an unintentional exception caused by incorrect inputs or unexpected conditions. That resulted in bizarre exception catching patterns, which this patch removes. Since safe_join is a private API and since the change is unlikely to create security issues for users who use it anyway -- at worst, an uncaught SuspiciousFileOperation exception will bubble up -- it isn't documented.
2014-11-11Fixed #23750 -- Allowed core.checks.register to be used as a functionaverybigant
2014-11-03Fixed typos using https://github.com/vlajos/misspell_fixerVeres Lajos
2014-10-31Fixed #23468 -- Added checks for duplicate fixtures directories in loaddata.Konrad Świat
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.
2014-10-30Clarified BaseCommand --traceback behavior.Matthew Somerville
2014-10-30Fixed #8149 -- Made File.__iter__() support universal newlines.Jon Dufresne
The following are recognized as ending a line: the Unix end-of-line convention '\n', the Windows convention '\r\n', and the old Macintosh convention '\r'. http://www.python.org/dev/peps/pep-0278 Thanks tchaumeny for review.
2014-10-27Fixed #23717 -- Fixed makemessages crash when STATIC_ROOT=NoneClaude Paroz
2014-10-27Fixed #23699 -- Prevented flush from loading initial data for apps with ↵Tony Zhu
migrations.
2014-10-22Refactored color_style() and no_style() to improve testability. Refs #23663.Loic Bistuer
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__.
2014-10-22Fixed #23686 -- Tweak color output of the system check framework.Loic Bistuer
Thanks Tim Graham for the review.
2014-10-22Fixed #23663 -- Initialize output streams for BaseCommand in __init__().Loic Bistuer
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.
2014-10-21Fixed #23583 -- More selectively ignored static/media rootsClaude Paroz
Fixed a regression introduced by 28efafa24c. Thanks Michal Čihař for the report and initial patch, and Collin Anderson and Tim Graham for the reviews.
2014-10-22Fixed #23107 -- Made runserver output respect --no-color.Loic Bistuer
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.
2014-10-20Fixed #23679 -- Fixed null introspection for char/text fieldsClaude Paroz
Thanks Paul Dejean for the report.
2014-10-20Removed redundant skip_checks option for call_commandClaude Paroz
2014-10-20Revert "Fixed #23650 -- Prevented migrate from calling checks 3 times"Claude Paroz
This reverts commit 8d6e1afe0be0570253a508f43e2ef89ae640984e. call_command now always set skip_checks to True (tested in user_commands).
2014-10-20Fixed #23685 -- Made call_command skip checks by defaultClaude Paroz
Thanks Loic Bistuer for the report/review and Tim Graham for the review.
2014-10-19Renamed skip_validation into skip_checks as the former is now deprecated.Loic Bistuer
2014-10-19Prevented syncdb from calling system checks multiple times. Refs #23650.Loic Bistuer
2014-10-17Fixed #23650 -- Prevented migrate from calling checks 3 timesClaude Paroz
Thanks Ilya Baryshev for the report and Tim Graham for the review.
2014-10-17Fixed #23469 -- Removed test runner compatibility check which often yielded ↵Tim Graham
false positives.
2014-10-16Fixed #23615 -- Validate that a Model instance's "check" attribute is a method.Rigel Di Scala
The "check" name is a reserved word used by Django's check framework, and cannot be redefined as something else other than a method, or the check framework will raise an error. This change amends the django.core.checks.model_check.check_all_models() function, so that it verifies that a model instance's attribute "check" is actually a method. This new check is assigned the id "models.E020".
2014-10-16Fixed #23660 -- Moved sort_dependencies to core.Collin Anderson
2014-10-16Fixed #19508 -- Implemented uri_to_iri as per RFC.Anubhav Joshi
Thanks Loic Bistuer for helping in shaping the patch and Claude Paroz for the review.
2014-10-13Fixed #23638 -- Prevented crash while parsing invalid cookie contentClaude Paroz
Thanks Philip Gatt for the report and Tim Graham for the review.
2014-10-12Fixed #23063 -- Convert \n and \r to \r\n when using the SMTP backend as per ↵Florian Apolloner
RFC.
2014-10-12Fixed #23642 -- Made LocMemCache.incr() thread-safe as documentedThomas Chaumeny
2014-10-10Fixed #23625 -- Removed CacheClass shimJaap Roes
2014-10-09Fixed #23612 -- Normalized fixuture paths to allow referencing relative ↵Brandon Taylor
paths on Windows.
2014-10-07Fixed #23522 -- Changed reverse() to return a Unicode string; not bytesJon Dufresne
2014-10-06Fixed #23601 -- Ensured view exists in URLconf before importing it in admindocs.Markus Holtermann
2014-09-29Replaced set([foo, ...]) by {foo, ...} literals. Refs PR 3282.Thomas Chaumeny
Thanks Collin Anderson for the review.
2014-09-27Updated comment about Python issueClaude Paroz
2014-09-25Fixed #23551 -- Fixed bash autocompletion crash on Python 3.Marco Buttu
2014-09-23Fixed #18782 -- Prevented sql_flush to flush viewsClaude Paroz
Thanks rodolfo_3 for the report and the initial patch, and Josh Smeaton, Shai Berger and Tim Graham for the reviews.
2014-09-13Fixed #23461 -- Added EMAIL_TIMEOUT settingJosé Padilla
2014-09-12Fixed #17101 -- Integrated django-secure and added check --deploy optionTim Graham
Thanks Carl Meyer for django-secure and for reviewing. Thanks also to Zach Borboa, Erik Romijn, Collin Anderson, and Jorge Carleitao for reviews.
2014-09-10Fixed #20743 -- Added support for keyfile/certfile in SMTP connections.Andi Albrecht
Thanks jwmayfield, serg.partizan, and Wojciech Banaś for work on the patch.
2014-09-09Fixed #23398 -- Added helpful error message when runserver is accessed via HTTPSFlavio Curella
2014-09-06Fixed #22882 -- Fixed a UnicodeDecodeError in flush.Tim Graham
Thanks djbaldey for the report.
2014-09-05Limited lines to 119 characters in django/Tim Graham
refs #23395.
2014-09-02Fixed #23302 -- Added --name/-n option to makemigrations commandRaffaele Salmaso
2014-08-30Converted sql_queries into a lazily evaluated list.Bas Peschier
Fixed #23364. Thanks Markush2010 for the report.
2014-08-29Fixed #21483 -- Added WSGI environ to kwargs sent to request_started signal.Joshua "jag" Ginsberg
2014-08-29Clarified a comment in django.core.files.temp.Tim Graham
2014-08-28Fixed #23379 -- Corrected a referencing issue in sql_create.Simon Charette
Thanks to Trac alias flakfizer for the report.
2014-08-22Fixed #23327 -- Added 'zero' syntax to migrate help messageareski
2014-08-20Fixed #23157 -- Removed O(n) algorithm when uploading duplicate file names.Tim Graham
This is a security fix. Disclosure following shortly.