summaryrefslogtreecommitdiff
path: root/django
AgeCommit message (Collapse)Author
2017-09-22[2.0.x] Bumped version to 2.0 alpha 1.Tim Graham
2017-09-22Fixed #27332 -- Added FilteredRelation API for conditional join (ON clause) ↵Nicolas Delaby
support. Thanks Anssi Kääriäinen for contributing to the patch.
2017-09-22Removed unused eof argument to BoundaryIter._find_boundary().Mariusz Felisiak
Unused since its introduction in d725cc9734272f867d41f7236235c28b3931a1b2.
2017-09-22Refs #28593 -- Made URLResolver._populate() more resilient to signal interrupts.Daniel Tao
_populate() sets the populating attribute to prevent infinite recursion in case a urlconf includes itself. The flag is a threadlocal to avoid a race condition [1] where one thread sets the flag and another checks it, then proceeds to access data that's supposed to be populated (e.g. _reverse_dict) but isn't yet. The potential still exists for a thread to set the threadlocal, then be interrupted by a signal such as SIGALRM and raise before resetting the threadlocal flag. In this scenario, subsequent calls to _populate() in the same thread will short-circuit erroneously. The bulk of the method was already wrapped in a try/finally in df41b5a, but since a signal interrupt can occur at any line executed by the interpreter, this moves up the try to ensure threadlocal gets reset. [1]: https://groups.google.com/d/msg/django-developers/D_bIeinKHjE/4NmVQUJqAgAJ
2017-09-21Refs #28595 -- Added a hook to add execute wrappers for database queries.Shai Berger
Thanks Adam Johnson, Carl Meyer, Anssi Kääriäinen, Mariusz Felisiak, Michael Manfre, and Tim Graham for discussion and review.
2017-09-21Fixed #28508 -- Set the foreground color to black in CSRF and 404 error ↵Stefan Sinca
templates.
2017-09-21Fixed #28576 -- Added color interpretation method to GDALBand.Niall Dalton
2017-09-20Fixed #28617 -- Made ogrinspect output pep8 compliant.Thomas Schorr
2017-09-20Fixed #28593 -- Added a simplified URL routing syntax per DEP 0201.Sjoerd Job Postmus
Thanks Aymeric Augustin for shepherding the DEP and patch review. Thanks Marten Kenbeek and Tim Graham for contributing to the code. Thanks Tom Christie, Shai Berger, and Tim Graham for the docs.
2017-09-20Fixed #28488 -- Reallowed error handlers to access CSRF tokens.Florian Apolloner
Regression in eef95ea96faef0b7dbbe0c8092202b74f68a899b.
2017-09-20Removed unused list in Query.resolve_lookup_value().Nicolas Delaby
Unneeded since its introduction in 4f138fe5a496a81115c4fba6615a517fc62c3b17.
2017-09-19Refs #28334 -- Fixed crash in hstore/citext oid caching during test db creation.Tim Graham
2017-09-18Fixed #28597 -- Fixed crash with the name of a model's autogenerated primary ↵Mariusz Felisiak
key in an Index's fields.
2017-09-18Fixed #14370 -- Allowed using a Select2 widget for ForeignKey and ↵Johannes Hoppe
ManyToManyField in the admin. Thanks Florian Apolloner and Tim Graham for review and contributing to the patch.
2017-09-18Refs #14370 -- Vendored Select2 4.0.3 for use by the admin.Johannes Hoppe
From https://github.com/select2/select2/releases/tag/4.0.3
2017-09-18Fixed #26608 -- Added support for window expressions (OVER clause).Mads Jensen
Thanks Josh Smeaton, Mariusz Felisiak, Sergey Fedoseev, Simon Charettes, Adam Chainz/Johnson and Tim Graham for comments and reviews and Jamie Cockburn for initial patch.
2017-09-18Changed default value of DatabaseFeatures.has_bulk_insert to True.Mads Jensen
2017-09-16Fixed #26818 -- Added responsive CSS for the admin.elky
2017-09-16Removed unneeded StdDev.convert_value() and Variance.convert_value().Sergey Fedoseev
Seems unneeded since its introduction in f59fd15c4928caf3dfcbd50f6ab47be409a43b01.
2017-09-16Simplified Count.convert_value() and RegrCount.convert_value().Sergey Fedoseev
2017-09-15Fixed #28334 -- Added caching for hstore/citext OIDs.Igor Gumenyuk
2017-09-15Removed unnecessary check in SQLCompiler.get_related_selections().Tim Graham
2017-09-13Removed unnecessary parens in various code.Mariusz Felisiak
2017-09-13Refs #28593 -- Moved django.conf.urls.include() to django.urls().Tim Graham
The old location remains for backwards compatibility. Documentation will be updated separately along with the rest of the URL routing changes.
2017-09-13Merged isinstance() calls.Mariusz Felisiak
2017-09-13Refs #27090 -- Added real database sequence introspection.Mariusz Felisiak
Thanks Mariusz Felisiak for the Oracle part and Tim Graham for the review.
2017-09-12Refs #28569 -- Fixed gis_tests.inspectapp.tests.OGRInspectTest.test_time_field.Sergey Fedoseev
2017-09-12Fixed #28440 -- Fixed WSGIServer hang on responses without a Content-Length.Tom
Disabled keep-alive to fix the regression in e6065c7b8363202c5eb13ba10c97a8c24d014b45.
2017-09-12Moved contrib.gis.geometry.regex to contrib.gis.geometry.Tim Graham
2017-09-12Removed django.contrib.gis.geometry.backend.Tim Graham
The layer of indirection is unchanged and undocumented since its introduction in ff60c5f9de3e8690d1e86f3e9e3f7248a15397c8.
2017-09-12Used sqlite3.Connection.load_extension() instead of query execution for ↵Sergey Fedoseev
SpatiaLite loading.
2017-09-11Fixed #28570 -- Dropped support for GEOS 3.3.x.Sergey Fedoseev
Removed setting SRID in GEOSGeometry.clone() which was only required in GEOS 3.3.0.
2017-09-11Fixed #28492 -- Defined default output_field of expressions at the class level.Simon Charette
This wasn't possible when settings were accessed during Field initialization time as our test suite setup script was triggering imports of expressions before settings were configured.
2017-09-11Refs #28492 -- Stopped accessing settings at Field.db_tablespace initialization.Simon Charette
Deferring accesses to settings allows database fields to be initialized before settings are loaded.
2017-09-11Fixed #28353 -- Fixed some GIS functions when queryset is evaluated more ↵Sergey Fedoseev
than once. Reverted test for refs #27603 in favor of using FuncTestMixin.
2017-09-11Fixed #28578 -- Renamed DatabaseCreation number arguments to suffix.Jon Dufresne
2017-09-11Fixed #28392 -- Fixed GIS's WKT regex to match large scientific notation ↵Sergey Fedoseev
numbers. Thanks Greg Larmore for report and initial patch.
2017-09-10Removed unnecessary parens in _get_app_label_and_model_name().Mariusz Felisiak
2017-09-09Refs #24928 -- Added introspection support for PostgreSQL RangeFieldClaude Paroz
2017-09-09Refs #24928 -- Added introspection support for PostgreSQL JSONFieldClaude Paroz
Thanks Adam Johnson and Tim Graham for the reviews.
2017-09-09Fixed some comments referring to a nonexistent TestClient class.Luoxzhg
2017-09-09Fixed #25961 -- Removed handling of non-thread safe GEOS functions.Sergey Fedoseev
2017-09-08Fixed deepcopy of AreaField and DistanceField.Sergey Fedoseev
2017-09-08Fixed #28546 -- Fixed translation's to_locale() with langauge subtags.Tim Graham
Thanks Brent Hand for the initial patch.
2017-09-08Removed to_lower parameter for translation's to_locale().Tim Graham
Unused since 2bab9d6d9ea095c4bcaeede2df576708afd46291.
2017-09-08Simplified GEOSFuncFactory.Sergey Fedoseev
2017-09-07Reverted "Fixed #27818 -- Replaced try/except/pass with contextlib.suppress()."Tim Graham
This reverts commit 550cb3a365dee4edfdd1563224d5304de2a57fda because try/except performs better.
2017-09-07Removed unneeded __init__() methods.Sergey Fedoseev
2017-09-06Fixed #15648 -- Allowed QuerySet.values_list() to return a namedtuple.Sergey Fedoseev
2017-09-06Fixed #27318 -- Made cache.set_many() return the list of failed keys.Olivier Tabone