1
0
mirror of https://github.com/django/django.git synced 2025-01-30 03:59:19 +00:00

22660 Commits

Author SHA1 Message Date
Ramiro Morales
777bc8f7d6 [1.10.x] Fixed #26692 -- Relaxed an i18n compilemessages test.
The actual non-ASCII character differs on Windows.

Backport of 71421e8f8766525e709397f14e100f2846849df0 from master
2016-06-01 09:21:17 -04:00
Tim Graham
bad894d5b8 [1.10.x] Fixed #26695 -- Clarified return value of View.options().
Thanks mmoreaux and DheerendraRathor.

Backport of db2a6b6bfa9881725e70ca579a17e942a97a4df8 from master
2016-06-01 08:29:28 -04:00
Simon Charette
58f0d40b6d [1.10.x] Fixed #26676 -- Prevented prefetching to_attr from caching its result in through attr.
Thanks Ursidours for the report.

Backport of 53a5fb3cc0137bebeebc0d4d321dbfe20397b065 from master
2016-05-31 14:35:20 -04:00
Ramiro Morales
4095317afb [1.10.x] Fixed #26687 -- Made an i18n test not use a hardcoded path separator.
Fixed a failure on Windows.

Backport of e3877c53edb33271b0f31d20e60a924848692026 from master
2016-05-31 12:00:57 -04:00
Florian Apolloner
7bc199aa64 [1.10.x] Fixed a typo in the docs.
Backport of 62e4f8ec435a4b600c8efb071201070a2443477e from master
2016-05-31 10:59:25 -04:00
Berker Peksag
ccea4a44c2 [1.10.x] Fixed #26503 -- Removed an outdated example from session docs.
Backport of 698c8dfc2a5c5865a8bb163c1ae70b75d53e6415 from master
2016-05-31 07:21:16 -04:00
Ketan Bhatt
c2dde7561a [1.10.x] Fixed #26679 -- Documented which methods are disabled on RelatedManager if there's an intermediate table.
Backport of 59523c06fe482232dad9dc63ef0baab63418196d from master
2016-05-31 07:15:15 -04:00
Christophe Pettus
3e1c8fc4c0 [1.10.x] Fixed #26684 -- Removed incorrect index example in docs/ref/contrib/postgres/search.txt.
Backport of 92107522ed3568740ec7c3597db50b5c3a6e84d3 from master
2016-05-30 14:21:48 -04:00
Vytis Banaitis
b737c0f5db [1.10.x] Fixed #25044 -- Fixed migrations for renaming ManyToManyField's through model.
Backport of f1e408ff40d2c1753f92515c70a44634b4d47467 from master
2016-05-30 10:27:28 -04:00
Berker Peksag
ab92351bc6 [1.10.x] Fixed #13080 -- Corrected accepted values of sender parameter in Signal.connect() docstring.
Backport of 995d09ead492a1c3d71d781c7846f622b3f71186 from master
2016-05-30 08:18:01 -04:00
Ramiro Morales
af8ac46015 [1.10.x] Fixed #26674 -- Corrected a i18n makemessages test.
Made it consistently read the PO file, decode its contents and then
check for the non-breaking space Unicode code point.

Previously we were erroneously skipping the interpretation of what we
read as UTF-8 text.

This was causing the test to fail on Windows with Python 3.5.

Backport of 1b00ed088073ffd268af15d25246d2565253536d from master
2016-05-29 12:49:47 -04:00
Tim Graham
e140139724 [1.10.x] Confirmed support for PostGIS 2.2.
Backport of cbea13f3447c3673a3cf25dab93f1dbc685ccd44 from master
2016-05-28 20:48:55 -04:00
Tim Graham
23e106bb72 [1.10.x] Refs #22634 -- Removed unneeded app_label in custom session engine example.
Backport of cc0d1eaaea40dc9d784c6974be1ce631a2087c11 from master
2016-05-28 17:33:28 -04:00
Ramiro Morales
e0a4d4477c [1.10.x] Fixed #26673 -- Fixed a I18N test case error on Windows+Python 2.7.
`subprocess.Popen` doesn't accept enviroment vars with Unicode var name
or value.

Backport of 15a5755e7cca630c2a0dbbcba436621ccc437c21 from master
2016-05-28 17:16:03 -04:00
Tim Graham
f529d0cb58 [1.10.x] Refs #24227 -- Fixed crash of ManyToManyField.value_from_object() on unsaved model instances.
This behavior was removed in 67d984413c9540074e4fe6aa033081a35cf192bc
but is needed to prevent a crash in formtools.

Backport of a4c20ae85b40c49e28d1b2227208e4f00d7820df from master
2016-05-28 16:06:06 -04:00
Ramiro Morales
fc644076cd [1.10.x] Fixed #26645 -- Fixed potential makemessages failures on Windows.
This was reflected by 27 i18n test errors (not failures) on such
platform caused by corrupt intermediate PO catalog files fed to
`msgmerge(1)`.

Made it handle in-memory PO/POT file contents with normalized line
separators (`'\n'`).

We need to perform manually this after using `subprocess.Popen` as we
can't pass it `universal_newlines=True`.

Also fixes #26670 in the process as this commit refactors the same code
section.

Backport of 6ab0d1358fc78077064aab88a4fb0a47ca116391 from master
2016-05-28 08:41:55 -04:00
Bas Westerbaan
c6aa941978 [1.10.x] Fixed #26635 -- Clarified Argon2PasswordHasher's memory_cost differs from command line utility.
Backport of 9407cc966b02e5ef69b7f561a6b972aff5d9c2e0 from master
2016-05-27 18:37:37 -04:00
Daniel Wiesmann
85ab56944d [1.10.x] Refs #25588 -- Fixed GDAL dependency in spatial lookups.
Backport of 9bb1b4b7f6b79096fc7418c3b7bb0118d44c373a from master
2016-05-27 17:07:26 -04:00
Tim Graham
9985544adb [1.10.x] Fixed #26652 -- Documented removal of model instance _(default/base)_manager attributes.
Backport of 0e7e47b5d7123441efc03545da59a6cd581c04b1 from master
2016-05-27 10:36:35 -04:00
Sergey Fedoseev
f38e950685 [1.10.x] Fixed typo in docs/topics/forms/modelforms.txt
Backport of 26794f6657a9d201d47a0748a449a94ad5d7c66e from master
2016-05-27 10:31:53 -04:00
Nick Smith
06db2b88cf [1.10.x] Fixed typo in docs/ref/models/querysets.txt
Backport of 838386815f53fe2cba1b42c498420881660079d4 from master
2016-05-27 09:13:12 -04:00
Simon Charette
dfae72f45a [1.10.x] Fixed #26647 -- Included the state of all applied migrations when migrating forward.
Thanks Jasper Maes for the detailed report.

Backport of 36d36818a30025034cad6f1ee59b2a960a6582ec from master
2016-05-26 13:32:02 -04:00
MariKiev
699e43b017 [1.10.x] Added imports to docs/topics/db/aggregation.txt example.
Backport of 30d110ef43d8a3c50ea8ec4e4fe49bd2bb859530 from master
2016-05-25 09:57:44 -04:00
Aleksey
de5d70461f [1.10.x] Added missing quotes in openlayers.html template.
Backport of a247c1d78978e358543e306edb94f03bd9bf9413 from master
2016-05-25 09:13:09 -04:00
Tim Graham
734e21786c [1.10.x] Refs #26134 -- Updated deprecated MySQL GIS function names.
Backport of 92f88206d0e05e9e833e6cd49f93cbd7b72b30ff from master
2016-05-24 21:50:30 -04:00
Tim Graham
8166f5e84a [1.10.x] Updated GeoIP test for latest database.
Backport of a0a1c4fbde4fb652b151a409db46c8ac3829ed2b from master
2016-05-23 20:17:37 -04:00
Simon Charette
826ec5ee57 [1.10.x] Refs #24067 -- Fixed contenttypes rename tests failures on Oracle.
Broke the initial migration in two to work around #25530 and added
'django.contrib.auth' to the available_apps to make sure its tables are also
flushed as Oracle doesn't implement cascade deletion in sql_flush().

Thanks Tim for the report.

Backport of 722344ee59fb89ea2cd5b906d61b35f76579de4e from master
2016-05-22 21:29:59 -04:00
Tim Graham
f248427af2 [1.10.x] Bumped version to 1.10a1. 1.10a1 2016-05-20 08:40:51 -04:00
Tim Graham
8282036877 [1.10.x] Bumped django_next_version in docs config. 2016-05-20 06:50:58 -04:00
Tim Graham
2befd9c7eb [1.10.x] Updated man page for Django 1.10 alpha. 2016-05-20 06:49:36 -04:00
Alex Hill
779bb82f51 Fixed #26421 -- Refactored ModelSignal to use Apps.lazy_model_operation() 2016-05-19 21:33:36 -04:00
Alex Hill
2ff7ef15b0 Refs #26421 -- Refactored Apps.lazy_model_operation() for better checks and tests 2016-05-19 21:33:36 -04:00
Tim Graham
0eac5535f7 Removed unused sections in 1.10 release notes. 2016-05-19 11:49:15 -04:00
Tim Graham
546649f2d6 Fixed some newlines in imports per isort. 2016-05-19 11:05:44 -04:00
Simon Charette
05a9f3a09a
Refs #24100 -- Fixed a test failure on MySQL related to non-transactional DDL.
Thanks Tim for the report.
2016-05-19 11:01:19 -04:00
darius BERNARD
a7ad473ad2 Fixed #26515 -- Fixed Query.trim_joins() for nested ForeignObjects. 2016-05-19 09:56:24 -04:00
Tim Graham
2e1d44e46d Fixed #26637 -- Removed obsolete note in docs/internals/contributing/writing-documentation.txt 2016-05-19 09:11:56 -04:00
Shai Berger
5112e65ef2 Fixed #20869 -- made CSRF tokens change every request by salt-encrypting them
Note that the cookie is not changed every request, just the token retrieved
by the `get_token()` method (used also by the `{% csrf_token %}` tag).

While at it, made token validation strict: Where, before, any length was
accepted and non-ASCII chars were ignored, we now treat anything other than
`[A-Za-z0-9]{64}` as invalid (except for 32-char tokens, which, for
backwards-compatibility, are accepted and replaced by 64-char ones).

Thanks Trac user patrys for reporting, github user adambrenecki
for initial patch, Tim Graham for help, and Curtis Maloney,
Collin Anderson, Florian Apolloner, Markus Holtermann & Jon Dufresne
for reviews.
2016-05-19 05:02:19 +03:00
Tim Graham
6d9c5d46e6 Fixed #26636 -- Fixed typo in docs/ref/request-response.txt 2016-05-18 21:39:08 -04:00
Simon Charette
7694e196ce
Moved the AUTH_USER_MODEL setting changed receiver.
Test suites besides Django's may need the same behavior.
2016-05-18 09:56:29 -04:00
Marti Raudsepp
b9ae662c97 Fixed #26620 -- Made Model.refresh_from_db() fail when passed unknown kwargs. 2016-05-18 09:27:23 -04:00
Barthelemy Dagenais
a5c8072ab1 Fixed #26627 -- Fixed on_commit callbacks execution order when callbacks make transactions. 2016-05-18 09:09:48 -04:00
Loïc Bistuer
4ff1e6ef58 Fixed running auth_tests in isolation after 3a47d42fa33012b2156bf04058d933df6b3082d2. 2016-05-18 06:38:42 -04:00
Josh Smeaton
2a4af0ea43 Fixed #25774 -- Refactor datetime expressions into public API 2016-05-18 20:14:58 +10:00
Josh Smeaton
77b73e79a4 Refs #25774 -- Made Oracle truncate microseconds if USE_TZ=False.
The tests for this change are in the fix for #25774.
2016-05-18 20:14:58 +10:00
Philip Liberato
3630b49b55 Fixed #26613 -- Made sqlite3 optional in SchemaEditor.quote_value(). 2016-05-17 21:43:37 -04:00
boaz85@gmail.com
5f23f904af Fixed #14415 -- Used the test database name in BaseDatabaseCreation.test_db_signature(). 2016-05-17 21:35:36 -04:00
Claude Paroz
5ccee815ff Updated translation catalogs 2016-05-17 23:21:35 +02:00
Simon Charette
f179113e6c
Fixed #24067 -- Renamed content types upon model renaming.
Thanks to Tim for the extensive review.
2016-05-17 12:14:58 -04:00
Tim Graham
354acd04af Refs #26601 -- Added a warning if both MIDDLEWARE AND MIDDLEWARE_CLASSES are set. 2016-05-17 07:24:45 -04:00