Commit Graph

21799 Commits

Author SHA1 Message Date
Claude Paroz cd40d9e721 Fixed #25657 -- Ignored exceptions when destroying geometry objects
Due to randomness of garbage collection with geometry objects, it's
easier to simply ignore AttributeError/TypeError generally raised when
parts of objects are already garbage-collected.
Thanks Sergey Fedoseev and Tim Graham for reviewing the patch.
2015-12-08 22:06:34 +01:00
Gavin Wahl ec708803f7 Fixed user_passes_test() signature in docs. 2015-12-08 15:56:10 -05:00
Raphael Michel 82976e5c3f Fixed #25637 -- Added URLValidator hostname length validation.
URLValidator now validates the maximum length of a hostname and the
maximum length of all labels inside the hostname.
2015-12-08 15:46:45 -05:00
Nik Nyby d7a58f285b Refs #25803 -- Documented npm compatibility in package.json 2015-12-08 15:13:22 -05:00
Tim Graham 166e0490d3 Fixed #25895 -- Used a consistent style for UserAdmin overrides.
Thanks Justin Abrahms for the report.
2015-12-08 14:40:55 -05:00
Tim Graham 26c26e8308 Refs #25886 -- Improved language in Python compatibility section of the release notes. 2015-12-08 13:01:25 -05:00
Tim Graham e6bd688ef3 Fixed #25881 -- Marked Python 3.2 in Django 1.8 as unsupported at the end of 2016. 2015-12-08 10:55:49 -05:00
Sergey Fedoseev a8614fb438 Fixed #25876 -- Removed OGRGeometry.transform_to() backwards-compatibility method. 2015-12-08 10:05:38 +05:00
Qile Wang 0f2c2c104b Clarified a docstring in tutorial05. 2015-12-07 18:52:25 -05:00
Tim Graham a5619f7ed3 Fixed #25860 -- Documented a transaction leak possiblity in TestCase.
Thanks Jonas Haag for report and review.
2015-12-07 18:14:23 -05:00
Simon Charette 59b57e672c Fixed #25867 -- Fixed a system check crash with nested ArrayFields.
Thanks to Jean Gourds for the report, Tim and Claude for the review.
2015-12-07 14:45:22 -05:00
Tim Graham 9c835990ea Added "Regressions from older versions of Django" as a backport qualification. 2015-12-07 10:21:33 -05:00
Tim Graham 285b08abc1 Refs #25548 -- Forwardported 1.9.1 release note. 2015-12-07 08:17:01 -05:00
Attila Tovt 6f229048dd Fixed #25547 -- Made Model.refresh_from_db() update FileField's instance. 2015-12-05 17:23:13 -05:00
Tim Graham f5af68ba68 Refs #25584 -- Corrected note about source of SyntaxErrors when installing Django 1.9. 2015-12-05 16:32:56 -05:00
Thomas Grainger d638cdc42a Fixed #25165 -- Removed inline JavaScript from the admin.
This allows setting a Content-Security-Policy HTTP header
(refs #15727).

Special thanks to blighj, the original author of this patch.
2015-12-05 15:51:57 -05:00
Florian Apolloner 105028eec6 Removed deprecated usage of url tag from auth docs. 2015-12-05 19:21:30 +01:00
Tim Graham 93be2f7dea Refs #25677 -- Skipped an i18n test on older gettext versions. 2015-12-04 17:53:15 -05:00
Sergey Fedoseev 479ba5add2 Fixed #25740 -- Documented GEOSGeometry operators. 2015-12-04 12:37:33 -05:00
Emre Yilmaz 8e838d9c86 Fixed #25840 -- Fixed BaseCache.get_or_set() on the DummyCache backend.
This also fixes a possible data eviction race condition between
setting and getting a key. Another thread could remove the key
before get_and_set() accesses it again. In this case, now the
default value will be returned instead of None.
2015-12-04 12:22:17 -05:00
Sergey Fedoseev 25f5b5c19d Fixed #25853 -- Added support for GeoHash function on SpatiaLite. 2015-12-04 08:09:21 -05:00
Alexander Sosnovskiy b61eab18f7 Fixed #13774 -- Added models.Field.rel_db_type(). 2015-12-04 07:55:41 -05:00
Daniel Wiesmann 0e7d59df3e Refs #25734 -- Relaxed GDALRaster statistics test to use assertAlmostEqual.
Some versions of GDAL give slightly different results.
2015-12-04 07:35:50 -05:00
bphillips 7f663aeccf Fixed #25820 -- Allowed whitespace in admin's calendar.js month/weekday names.
This is useful for certain language translations.
2015-12-03 19:44:15 -05:00
Sergey Fedoseev 717a54c883 Fixed #25797 -- Fixed regex for getting units from SRS WKT. 2015-12-03 19:03:28 -05:00
Claude Paroz b52b9cf6f2 Refs #25655 -- Made HAS_GEOS depend on a minimum version.
This skips some tests on systems with GEOS < 3.3 (the minimum
supported version).
2015-12-03 18:22:58 -05:00
Raphaël Hertzog 9f4e031bd3 Fixed #25761 -- Added __cause__.__traceback__ to reraised exceptions.
When Django reraises an exception, it sets the __cause__ attribute even
in Python 2, mimicking Python's 3 behavior for "raise Foo from Bar".
However, Python 3 also ensures that all exceptions have a __traceback__
attribute and thus the "traceback2" Python 2 module (backport of Python
3's "traceback" module) relies on the fact that whenever you have a
__cause__ attribute, the recorded exception also has a __traceback__
attribute.

This is breaking testtools which is using traceback2 (see
https://github.com/testing-cabal/testtools/issues/162).

This commit fixes this inconsistency by ensuring that Django sets
the __traceback__ attribute on any exception stored in a __cause__
attribute of a reraised exception.
2015-12-03 16:31:50 -05:00
Jaap Roes c6ea4ed5d2 Fixed #25825 -- Implemented __ne__() for template Origin 2015-12-03 15:59:34 -05:00
Sergey Fedoseev 395af23ac1 Refs #25659 -- Added missing docs for Difference/Intersection/SymDifference functions.
Complements 7127eb287f.
2015-12-03 12:59:01 -05:00
Qile Wang 83a710b8d3 Fixed typo in docs/ref/models/instances.txt 2015-12-03 12:55:32 -05:00
Josh Soref 93452a70e8 Fixed many spelling mistakes in code, comments, and docs. 2015-12-03 12:48:24 -05:00
Alasdair Nicol b6dd0afead Fixed #25851 -- Removed links to deprecated assignment tag docs. 2015-12-03 10:40:56 -05:00
Ville Skyttä 4d0f8831a7 Fixed #25667 -- Fixed admindocs initial_header_level. 2015-12-02 17:56:38 -05:00
Sergey Fedoseev 0825f77f76 Fixed #25836 -- Added support for MakeLine aggregate on SpatiaLite. 2015-12-02 17:25:33 -05:00
Eliezer Kanal d3b488f5bd Updated link to 1000 common passwords.
xato.net is dead; replaced with link to archive.org.
2015-12-02 12:57:02 -05:00
Tim Graham df832001ea Added stub release notes for 1.9.1. 2015-12-01 19:16:24 -05:00
Tim Graham a7edac1578 Added release date for 1.9. 2015-12-01 18:04:58 -05:00
Claude Paroz 273ce8aa6a Pulled contrib translations from Transifex
Forward port of 6a4649c27e from stable/1.9.x
2015-12-01 20:37:57 +01:00
Claude Paroz 0c37bae189 Pulled core Django translations from Transifex
Forward port of 3039d76bd6 from stable/1.9.x
2015-12-01 20:36:53 +01:00
Jon Dufresne 7aabd62380 Fixed #25778 -- Updated docs links to use https when available. 2015-12-01 08:01:34 -05:00
Tim Graham 51a3721372 Removed obsolete phrase about adding Python 3.5 in Django 1.9. 2015-11-30 20:07:22 -05:00
Sergey Fedoseev da08195b36 Removed old versionadded/changed directives. 2015-11-30 18:45:57 -05:00
gunchleoc 89b6856aa6 Fixed #25823 -- Made some titles consistent in admindocs. 2015-11-30 11:17:48 -05:00
Sergey Fedoseev 49f1cc54e6 Fixed #25835 -- Removed Adaptor alias from spatial operations classes. 2015-11-30 08:57:15 -05:00
elky 2084aed20c Fixed #25827 -- Removed extra spacing in admin's DateTimeField. 2015-11-30 08:46:22 -05:00
Gagaro 34d88944f4 Fixed #25812 -- Restored the ability to use custom formats with the date template filter. 2015-11-28 08:38:45 -05:00
Baptiste Mispelon ab33269b00 Fixed #25826 -- Improved help text for the --parallel option
This was overlooked in 81f5d63218.
2015-11-27 23:08:34 +01:00
Baptiste Mispelon 81f5d63218 Improved help text for runtests's --parallel option 2015-11-27 21:43:02 +01:00
James Beith e03798a4ae Fixed a typo in the managers docs. 2015-11-27 13:51:58 -05:00
Claude Paroz 8bc0266b3f Added Scottish Gaelic as new available language
Refs #25815. Thanks gunchleoc <fios@foramnagaidhlog.net> for the Scottish Gaelic
formats.py.
2015-11-27 09:55:11 +01:00