summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
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
2014-12-29Fixed #21255 -- Closed connections after management command ranClaude Paroz
Thanks kabakov.as@gmail.com for the report, and Aymeric Augustin, Simon Charette for the reviews.
2014-12-29Fixed #23271 -- Don't corrupt PO files on Windows when updating them.Ramiro Morales
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.
2014-12-28Moved context_processors from django.core to django.template.Aymeric Augustin
2014-12-26Replaced sqlall in some bash_completion/admin_scripts tests.Tim Graham
sqlall will be removed in Django 1.9, so now's a good time to remove its usage where it's not important.
2014-12-26Fixed #24054 -- Enabled sqlsequencereset for apps with migrations.Tim Graham
2014-12-25Fixed #23866 -- Harmonized refs to Django documentation from codeClaude Paroz
2014-12-24Removed shutil.copystat copied from stdlib (added to support an old Python?).Tim Graham
2014-12-24Fixed #20349 -- Moved setting_changed signal to django.core.signals.Collin Anderson
This removes the need to load django.test when not testing.
2014-12-23Replaced DatabaseCreation sql methods by schema editor equivalentsClaude Paroz
Also used schema editor in migrate to sync unmigrated apps (sync_apps). Refs #22340. Thanks Tim Graham for the review.
2014-12-23Fixed #17946 -- Fixed deserialization of self-referencing M2M fieldsClaude Paroz
Thanks Philip Mountifield for the report and excellent analysis, and Simon Charette for the review.
2014-12-18Fixed #23788 (2) -- Improved gettext version checkerClaude Paroz
Thanks Tim Graham for the report and initial patch.
2014-12-16Fixed #23975 -- Restored pre_migrate signal if all apps have migrations.Tim Graham
Thanks kmmbvnr for the report.
2014-12-08Fixed #20968 -- Checked Spatialite metadata before migrationsClaude Paroz
Thanks Kenial S. Lee for the initial patch and Tim Graham for the review.
2014-12-08Fixed #23968 -- Replaced list comprehension with generators and dict ↵Jon Dufresne
comprehension
2014-12-02Tweaked fix for refs #23946; thanks Claude.Tim Graham
2014-12-02Fixed #23946 -- Fixed runserver crash when socket error contains Unicode chars.Andriy Sokolovskiy
2014-11-28Fixed #4444 - Made runserver suppress 'broken pipe' errorsMatthew Somerville
One handler in WSGIServer, to catch the error when raised from SocketServer.BaseServer's finish_request, and one in WSGIRequestHandler (by creating a subclass of ServerHandler), to catch the error when raised in wsgiref.handlers.BaseHandler's finish_response.
2014-11-28Fixed #23728 -- Added the --exit option to makemigrations.Tim Heap
If no changes that need migrations are found, `makemigrations --exit` exits with error code 1.
2014-11-28Fixed #23910 -- Added reply_to parameter to EmailMessageMartin Blech
Thanks to Berker Peksag and Tim Graham for the review and suggestions.
2014-11-27Fixed #23924 -- Made EmailMessage raise TypeError for type checksMartin Blech
2014-11-27Fixed #14664 -- Logged a warning if MiddlewareNotUsed is raised in DEBUG mode.Berker Peksag
2014-11-25Fixed #23899 -- Added 'Generated by Django X.Y' to startproject template.Martin Blech
2014-11-24Fixed #23888 -- Fixed crash in File.__repr__() when name contains unicode.Sergey Fedoseev
2014-11-24Removed workaround for lack of os.getpid() in Jython.Tim Graham
The Jython bug was fixed in http://bugs.jython.org/issue1518 (tested on Jython 2.7b3); also updated make_msgid() to be more like the version in Python 3.2+; refs #23905. Thanks Simon Charette for testing and review.
2014-11-24Fixed #13694 -- Made SafeMIMEText's constructor compatible with MIMEText.Berker Peksag
2014-11-22Revert "Fixed #23892 -- Made deconstructible classes forwards compatible"Carl Meyer
This reverts commit f36151ed169813f2873e13ca9de616cfa4095321. Adding kwargs to deconstructed objects does not achieve useful forward-compatibility in general, since additional arguments are silently dropped rather than having their intended effect. In fact, it can make the failure more difficult to diagnose. Thanks Shai Berger for discussion.
2014-11-22Fixed #23892 -- Made deconstructible classes forwards compatibleCarl Meyer
2014-11-22Fixed #23887 -- Returned Bad Request for multipart parsing failsClaude Paroz
Thanks Antti Häyrynen and Tim Graham for the report, and Aymeric Augustin for the review.
2014-11-20Removed reduce() usage in makemigrations; refs #23796.Brad Walker
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.
2014-11-20Reduced reduce() usage; refs #23796.Brad Walker
django.core.exceptions.ValidationError.messages() and django.db.backends.schema.BaseDatabaseSchemaEditor._alter_field(): Replaced reduce(operator.add, ...) w/uncoupled, explicit sum()
2014-11-18Fixed #18714 -- Added 'fuzzy' compilemessages optionAnton Baklanov
2014-11-18Fixed #23799 -- Made makemigrations respect --no-optimize.Tillmann Karras
Thanks to yamila-moreno for the idea of a skip message.
2014-11-17Improved readability of negative condition in makemessagesClaude Paroz
Thanks Berker Peksag for the suggestion.
2014-11-17Simplified handle_extensions management utilityClaude Paroz
makemessages now doesn't need any special ignoring logic, after commit bb4a92d784.
2014-11-17Fixed #23840 -- Fixed makemessages find_files methodIlja Maas
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.
2014-11-15Fixed #21363 -- Added datetime.timedelta support to TimestampSigner.unsign().Berker Peksag
2014-11-15Added a new GeoJSON serialization format for GeoDjangoClaude Paroz
Thanks Reinout van Rees for the review.
2014-11-13Merge pull request #3481 from manfre/ticket-16358Michael Manfre
Fixed #16358 - Made memcache backend delete old value on a failure to set.
2014-11-13Fixed #23765 -- Removed BooleanField default check which often yielded false ↵Tim Graham
positives.
2014-11-13Fixed #16358 - Made memcache backend delete old value on a failure to set.Michael Manfre
Default Memcached configuration allows for a maximum object of 1MB and will fail to set the key if it is too large. The key will be deleted from memcached if it fails to be set. This is needed to avoid an issue with cache_db session backend using the old value stored in memcached, instead of the newer value stored in the database.
2014-11-12Removed return from __init__.Aymeric Augustin
__init__ isn't allowed to return anything other than None and it isn't common practice to include a return statement.
2014-11-11Normalized opening a file and decoding its content.Aymeric Augustin
`io.open` is required on Python 2.7. Just `open` would work on Python 3.