summaryrefslogtreecommitdiff
path: root/django/core
AgeCommit message (Collapse)Author
2014-06-14Fixed #19973 -- Replaced optparse by argparse in management commandsClaude Paroz
Thanks Tim Graham for the review.
2014-06-13Fixed #22477 -- Removed contrib middleware from the global settings defaults.mlavin
Also added a compatibility check for changed middleware defaults. Forwardport of d94de802d3 from stable/1.7.x
2014-06-12Made the vendored NamedTemporaryFile work as a context manager. Refs #22680.Loic Bistuer
This fixes a regression on Windows introduced by b7de5f5. Thanks Tim Graham for the report and review.
2014-06-11Fixed #22680 -- I/O operation on closed file.Florian Apolloner
This patch is two-fold; first it ensure that Django does close everything in request.FILES at the end of the request and secondly the storage system should no longer close any files during save, it's up to the caller to handle that -- or let Django close the files at the end of the request.
2014-06-10Fixed #22770 -- Removed create_superuser from post_migrate signals.Tim Graham
Moved logic to syncdb command for backwards compatibility.
2014-06-08Fixed #22487: Optional rollback emulation for migrated appsAndrew Godwin
2014-06-08Fixed #22777: Add dependency on through for autodetected M2M addsAndrew Godwin
2014-06-07Fixed #22749: Making SQL management commands migration aware.Víðir Valberg Guðmundsson
2014-06-07Fixed #6992 -- Improved error when middleware omits HttpResponse.Aymeric Augustin
Thanks guettli for the report.
2014-06-07Fixed #18314 -- Corrected request.build_absolute_uri() handling of paths ↵Unai Zalakain
starting with // ``HttpRequest.build_absolute_uri()`` now correctly handles paths starting with ``//``. ``WSGIRequest`` now doesn't remove all the leading slashes either, because ``http://test/server`` and http://test//server`` aren't the same thing (RFC2396). Thanks to SmileyChris for the initial patch.
2014-06-05Fixed #21773 -- made daemon threads default in the development server.Moayad Mardini
Thanks clime for the report.
2014-06-04Fixed #22717 -- Auto-corrected missing ending slash in FileSystemStorageClaude Paroz
Thanks David Fischer for the report and Moayad Mardini for the review.
2014-06-03Fixed #22384 -- Deprecated reversing URLs by dotted path.Tim Graham
2014-06-01Revert "Making SQL management commands migration aware."Florian Apolloner
This reverts commit cb9c9a7b5879671053c7d2ad6e79943a8814b274.
2014-05-29Fix test failure caused by 3149cdce32e7261b2d44128ab712c4d4f1a5d429Andrew Godwin
2014-05-29Making SQL management commands migration aware.Víðir Valberg Guðmundsson
2014-05-28Fixed several typos in DjangoAlex Gaynor
2014-05-27Argument to `reversed` must be a sequence on Py3.Simon Charette
2014-05-27Fix a regression introduced by f011b90363.Simon Charette
`django.get_version` was actually used by the module.
2014-05-27Removed an old compatibility shim added in 1.0Claude Paroz
2014-05-27Fixed #21630 -- Simplified management command discoveryClaude Paroz
Thanks Aymeric Augustin for the report end the review.
2014-05-27Fixed #22699 -- Configure default settings in some management commands.Aymeric Augustin
This makes it possible to run django.setup() in management commands that don't need a settings module. In addition it simplifies error handling. Thanks Claude for the review.
2014-05-27Fixed #22675 -- makemigrations --dry-run to output migrations to stdout.Moayad Mardini
`makemigrations --dry-run` will output the complete migrations file that would be written if it's used along with `--verbosity 3`.
2014-05-25Removed executeable bit from a few files.Florian Apolloner
2014-05-26Fixed a few ResourceWarning in the test suite. Refs #22680.Loic Bistuer
2014-05-24Fixed #22676 -- makemigrations --dry-run should not ask for defaultsMoayad Mardini
Made the fix in InteractiveMigrationQuestioner class code, rather than MigrationAutodetector, because --dry-run shouldn't affect whether MigrationAutodetector will detect non-nullable fields, but the questioner should skip the question and returns a None for default (since that won't be used anyway) if --dry-run is used.
2014-05-24Applied unicode_literals to makemessages commandClaude Paroz
This also fixes #22686 as some sort of side-effect.
2014-05-22the SECRET_KEY is not a hashThomas Grainger
2014-05-21Merge pull request #2498 from ramiro/move-serverhandlerRamiro Morales
Moved ServerHandler helper class to tests.
2014-05-19Updated Django makemessages processClaude Paroz
makemessages should now automatically distribute translatable strings in the proper locale files, for Django too (see 50a8ab7cd1e6).
2014-05-18Removed some unnecessary exception naming; thanks claudep.Tim Graham
2014-05-18Fixed #21799 - Modified loaddata --ignorenonexistent to ignore models.Esau Rodriguez
2014-05-16Fixed #22579 -- Corrected validation for email to reject trailing slashErik Romijn
Thanks to Claude Paroz for the report and patch and Tomasz Paczkowski for the review.
2014-05-16Fixed #21634 -- Prevented hiding ImproperlyConfigured when command not foundClaude Paroz
Thanks nikolay.v.golub@gmail.com for the report.
2014-05-15Harmonized some PEP 0263 coding preamblesClaude Paroz
2014-05-14Dropped fix_IE_for_vary/attach.Aymeric Augustin
This is a security fix. Disclosure following shortly.
2014-05-11Completed long overdue sqlinitialdata deprecation.Ramiro Morales
2014-05-11Fixed #14226 -- Dependency calculation for complex M2M relations.Rainer Koirikivi
`sort_dependencies` incorrectly interpreted 'complex' M2M relations (with explicit through models) as dependencies for a model. This caused circular complex M2M relations to be unserializable by dumpdata. Thanks to aneil for the report and outofculture for initial tests.
2014-05-09Fixed #22606 -- Locmemcache has_key() failed for infinite cache expiryMalcolm Box
Refactored cache expiry logic for Locmemcache to make consistent across all places where accessed, and correctly handle None as expiry time.
2014-05-08Fixed #22588 -- Fix RegexValidator __eq__David Szotten
Compare parameters instead of re.pattern instances, and add the other parameters to the comparison. Also add a __ne__ to make assertNotEqual work properly.
2014-05-08Removed unused imports in makemigrationsClaude Paroz
2014-05-06Fixed #22576: Ensure makemigrations doesn't touch the database.Andrew Godwin
2014-05-06Fixed #22337: FileSystemStorage marked as deconstructible and tested.Andrew Godwin
2014-05-02Fixed clash caused by the newly introduced -e shorthand for makemessages ↵Loic Bistuer
--exclude. This fixes a regression caused by 0707b82. Refs #22328.
2014-04-30Cleanup failing test w/contenttypes and remove useless graph loadAndrew Godwin
2014-04-30Fixed #22485: Include all unmigrated apps in project state by default.Andrew Godwin
2014-04-30Removed unused import.Tim Graham
2014-04-30Fixed #22511 -- Added args to migrations management commands.Bruno Ribeiro da Silva
2014-04-29Removed bogus, ineffective 'U' flag from codecs.open() call.Ramiro Morales
2014-04-26Fixed #3214 -- Stopped parsing SQL with regex.Aymeric Augustin
Avoided introducing a new regex-based SQL splitter in the migrations framework, before we're bound by backwards compatibility. Adapted this change to the legacy "initial SQL data" feature, even though it's already deprecated, in order to facilitate the transition to migrations. sqlparse becomes mandatory for RunSQL on some databases (all but PostgreSQL). There's no API to provide a single statement and tell Django not to attempt splitting. Since we have a more robust splitting implementation, that seems like a good tradeoff. It's easier to add a new keyword argument later if necessary than to remove one. Many people contributed to both tickets, thank you all, and especially Claude for the review. Refs #22401.