Sergey Fedoseev
f7889b83b0
Fixed #25924 -- Removed gis.utils.srs.add_postgis_srs() backwards-compatibility alias.
2015-12-12 10:49:04 -05:00
Tim Graham
10427646b8
Fixed #25909 -- Added unicode_literals import to apps.py generated by startapp.
2015-12-12 09:34:01 -05:00
Tim Graham
030ee15850
Refs #25918 -- Fixed typo in 1.10 release notes.
2015-12-11 12:54:04 -05:00
Tim Graham
59f861fcb4
Fixed #25918 -- Removed unused LOGOUT_URL setting.
...
Thanks hop for the report and patch.
2015-12-11 12:43:02 -05:00
Sergey Fedoseev
8ab58b8052
Fixed #25883 -- Fixed admin deletion page summary counts for related objects.
2015-12-10 18:09:03 -05:00
Federico Frenguelli
3a36c80795
Fixed #25412 -- Fixed missing PostgreSQL index on Char/TextField when using AlterField.
...
Thanks to Emanuele Palazzetti for the help.
2015-12-10 16:12:51 -05:00
Johannes Hoppe
cf546e11ac
Fixed #21221 -- Made form Media and static template tag use staticfiles if installed.
2015-12-10 14:30:19 -05:00
Derek J. Curtis
6be9589eb3
Fixed #25900 -- Fixed regression in CommonMiddleware ETag support.
2015-12-10 13:51:07 -05:00
Damien
071af82539
Refs #25099 -- Added removal of build_request_repr() to 1.9 release notes.
2015-12-10 11:45:28 -05:00
Amos Onn
542b7f6c50
Fixed #25896 -- Fixed state bug in SeparateDatabaseAndState.database_backwards().
2015-12-09 11:06:57 -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
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
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
285b08abc1
Refs #25548 -- Forwardported 1.9.1 release note.
2015-12-07 08:17:01 -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
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
Sergey Fedoseev
395af23ac1
Refs #25659 -- Added missing docs for Difference/Intersection/SymDifference functions.
...
Complements 7127eb287f
.
2015-12-03 12:59:01 -05:00
Alasdair Nicol
b6dd0afead
Fixed #25851 -- Removed links to deprecated assignment tag docs.
2015-12-03 10:40:56 -05:00
Sergey Fedoseev
0825f77f76
Fixed #25836 -- Added support for MakeLine aggregate on SpatiaLite.
2015-12-02 17:25:33 -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
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
Gagaro
34d88944f4
Fixed #25812 -- Restored the ability to use custom formats with the date template filter.
2015-11-28 08:38:45 -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
Claude Paroz
ff0dac9666
Added Colombian Spanish as new available language
...
Refs #25815 .
2015-11-27 09:55:11 +01:00
Simon Charette
cc2ca9c550
Fixed #25807 -- Instructed the migration writer about lazy objects.
...
Thanks to Trac alias mrgaolei for the report, Baptiste for the confirmation
and Tim for the review.
2015-11-26 11:14:47 -05:00
Sergey Fedoseev
f920be7c32
Fixed #25773 -- Deprecated the geos.MultiPolygon.cascaded_union property.
2015-11-25 17:31:24 -05:00
Attila Tovt
88fc9e2826
Fixed #25772 -- Corrected __len lookup on ArrayField for empty arrays.
2015-11-25 16:53:05 -05:00
Daniel Wiesmann
8f5904560a
Fixed #25734 -- Made GDALBand min and max properties use GDALComputeRasterStatistics.
...
Thanks Sergey Fedoseev and Tim Graham for the review.
2015-11-25 13:40:39 -05:00
Jacek Bzdak
2cb50f935a
Fixed #25274 --- Made inspectdb handle renamed fields in unique_together.
2015-11-25 13:07:00 -05:00
Tim Graham
ec202eff84
Added stub release notes for 1.8.8.
2015-11-25 10:19:32 -05:00
Tim Graham
3d805aeaf8
Added CVE-2015-8213 to the security archive.
2015-11-24 13:10:10 -05:00
Tim Graham
4a2d7beb95
Added release date for 1.8.7/1.7.11 releases.
2015-11-24 11:20:29 -05:00
Florian Apolloner
316bc3fc94
Fixed a settings leak possibility in the date template filter.
...
This is a security fix.
2015-11-24 11:20:29 -05:00
George Marshall
710e11d076
Fixed #25767 -- Fixed data truncation possibility with Positive(Small)IntegerField on MySQL.
2015-11-24 11:09:15 -05:00
Tim Graham
e07def14b8
Refs #25786 -- Added tests/release notes for set_FOO_order() crash with order_with_respect_to referencing OneToOneField pk.
...
Forwardport of 6d9f061b07
from stable/1.8.x
The issue was fixed by 7bec480fe2
.
2015-11-23 11:33:13 -05:00
Simon Charette
6d03bc14e7
Fixed #25685 -- Fixed a duplicate query regression on deletion of proxied models.
...
Thanks to Trac alias ppetrid for the report and Tim for the review.
Conflicts:
django/db/models/deletion.py
tests/delete/tests.py
Forward port of 7c3ef19978
from stable/1.8.x
2015-11-22 23:20:33 -05:00
Tim Graham
54e2e688e1
Fixed #25715 -- Fixed Model.refresh_from_db() with ForeignKey w/on_delete=SET_NULL.
2015-11-21 10:34:01 -05:00
Sergey Fedoseev
ccc8f67b77
Fixed #25722 -- Added the GEOSGeometry.covers() method.
2015-11-20 12:36:03 -05:00
Andrei Fokau
998894e1b9
Fixed #25764 -- Added support for serialization of enum.Enum in migrations.
...
Thanks Tim Graham for the review.
2015-11-19 17:21:12 -05:00
Anton Baklanov
80bcbecd4a
Fixed #19361 -- Added link to object's change form in admin's post-save message.
...
Thanks Roel Kramer for tests.
2015-11-19 15:04:32 -05:00
Tim Graham
4921d4e59f
Fixed #25769 -- Updated get_version() release candidate naming for PEP 0440.
2015-11-19 10:00:09 -05:00
Tim Graham
afd0463961
Removed a bug fix from the 1.9 release notes.
...
The fix has also since been backported to stable/1.8.x.
2015-11-19 08:56:54 -05:00
Sergey Fedoseev
034dfbfc05
Fixed #25654 -- Added the GEOSGeometry.unary_union property.
2015-11-18 19:17:16 -05:00
Sergey Fedoseev
7a452c5ce2
Fixed #25665 -- Deprecated getter/setter of Point.tuple.
2015-11-18 12:06:03 -05:00
Sergey Fedoseev
7803f429a4
Refs #25665 -- Deprecated getters/setters of Point coordinate properties.
2015-11-18 11:57:26 -05:00
Sergey Fedoseev
b7177cc2a4
Refs #25665 -- Deprecated getter/setter of GEOSGeometry.srid.
2015-11-18 11:49:48 -05:00
Tim Graham
6258e16335
Refs #24971 , #25356 -- Clarified how apps.py works in 1.9 release notes.
2015-11-17 19:32:32 -05:00
Raphael Michel
16945f0e9c
Fixed #25695 -- Added template_name parameter to csrf_failure() view.
2015-11-17 14:28:18 -05:00
Tim Graham
02d974ceb5
Fixed typo in docs/releases/1.9.txt.
2015-11-16 19:34:12 -05:00
Agnieszka Lasyk
1f8dad6915
Fixed #25755 -- Unified spelling of "website".
2015-11-16 06:44:14 -05:00
Dmitry Dygalo
263b3d2ba1
Fixed #25666 -- Fixed the exact lookup of ArrayField.
2015-11-14 11:21:16 -05:00
Aaron Elliot Ross
19a5f6da32
Fixed #25469 -- Added autoescape option to DjangoTemplates backend.
...
Thanks Aymeric for the initial patch and Carl for review.
2015-11-12 19:14:23 -05:00
Tim Graham
a8f05f405f
Replaced "inbuilt" with more common "built-in".
2015-11-12 17:29:03 -05:00
Tim Graham
34bb6c0cb7
Refs #24937 -- Forwardport of 1.8.7 release note.
...
Forwardport of 3ded51bcf2
from stable/1.8.x
2015-11-11 16:58:47 -05:00
Marti Raudsepp
d3e3703a15
Fixed #25720 -- Made gettext() return bytestring on Python 2 if input is bytestring.
...
This is consistent with the behavior of Django 1.7.x and earlier.
2015-11-11 08:56:10 -05:00
Tim Graham
4c593eaa5f
Updated six to 1.10.0.
2015-11-10 22:05:48 -05:00
Ian Foote
4608573788
Fixed #25693 -- Prevented data loss with Prefetch and ManyToManyField.
...
Thanks to Jamie Matthews for finding and explaining the bug.
2015-11-10 12:12:07 -05:00
Tim Graham
dbbae2cead
Refs #25618 -- Forwardported 1.8.7 release note.
...
Forwardport of 8c8a6d8a3f
from stable/1.8.x
2015-11-10 10:42:32 -05:00
Marti Raudsepp
1155843a41
Fixed #25683 -- Allowed ModelChoiceField(queryset=...) to accept Managers.
...
This fixes a regression from refs #25496 .
2015-11-09 12:42:36 -05:00
Tim Graham
c6da4b0c68
Refs #25686 -- Forwardported 1.8.7 release note.
2015-11-09 10:58:48 -05:00
Aymeric Augustin
1014ba026e
Fixed debug view crash during autumn DST change.
...
This only happens if USE_TZ = False and pytz is installed (perhaps not
the most logical combination, but who am I to jugde?)
Refs #23714 which essentially fixed the same problem when USE_TZ = True.
Thanks Florian and Carl for insisting until I wrote a complete patch.
2015-11-07 23:17:33 +01:00
j0hnsmith
0115f9faa5
Fixed #25692 -- Added natural keys support to Site model.
2015-11-07 21:19:25 +01:00
Tim Graham
d49b36e485
Added stub release notes for 1.8.7.
2015-11-05 09:22:12 +01:00
Tim Graham
dacec66c79
Added release date for 1.8.6.
2015-11-04 17:48:49 +01:00
Tim Graham
ebd26bf5a5
Removed an extra heading in the 1.10 release notes.
2015-11-03 12:02:25 +00:00
Sergey Fedoseev
0a26121797
Refs #25629 -- Added `arity` class attribute to `Func` expressions
2015-11-02 20:09:21 +01:00
Sergey Fedoseev
b78226cd3d
Fixed #25655 -- Dropped support for GEOS < 3.3
2015-11-01 20:41:52 +01:00
Sergey Fedoseev
8ad923b9d0
Fixed #25636 -- Dropped support for SpatiaLite < 3.0
2015-10-31 14:22:34 +01:00
Tim Graham
81b55fb900
Fixed #25100 -- Documented an upgrade caveat for contenttypes migration.
2015-10-30 10:30:19 -04:00
Tim Graham
8c5b8018f6
Fixed #23985 -- Documented a backwards incompatible change in URLValidator.
2015-10-29 18:03:38 -04:00
Tim Graham
abf5ccc29c
Fixed #25489 -- Documented that SESSION_SAVE_EVERY_REQUEST doesn't create empty sessions.
2015-10-29 17:28:37 -04:00
Claude Paroz
7d81ee6efc
Fixed #16734 -- Set script prefix even outside of requests
...
Thanks Tim Graham for the review.
2015-10-29 20:12:38 +01:00
Simon Charette
9dcfecb7c6
Fixed #25622 -- Accounted for generic relations in the admin to field validation
...
Thanks to Jonathan Liuti for the report and Tim Graham for the review.
2015-10-29 13:13:19 -04:00
Dheerendra Rathor
96fe90f535
Fixed #25620 -- Made URLValidator prohibit URLs with consecutive dots in the domain section.
2015-10-29 10:59:22 -04:00
Tim Graham
15ef1dd478
Fixed #20846 -- Increased User.username max_length to 254 characters.
...
Thanks Collin Anderson and Nick Sandford for work on the patch.
2015-10-29 08:58:49 -04:00
Tim Graham
e5ab75d2fd
Refs #25618 -- Forwardported 1.8.6 release note.
...
Forwardport of 65bff161ff
from stable/1.8.x
2015-10-28 10:20:26 -04:00
Simon Charette
976bd519a8
Revert "Fixed #25417 -- Added a field check for invalid default values."
...
This reverts commit 71ebcb85b9
.
2015-10-27 11:02:35 -04:00
Tim Graham
1f07da3e29
Fixed #25597 -- Fixed crash with SplitArrayField and IntegerField on invalid value.
2015-10-27 08:11:11 -04:00
Tim Graham
9c5e272860
Fixed #25550 -- Deprecated direct assignment to the reverse side of a related set.
2015-10-27 07:57:15 -04:00
Tim Graham
1ce8512c87
Documented Python 3.5 support for Django 1.8.
...
Forwardport of d27085b02d
from stable/1.8.x
2015-10-26 10:13:22 -04:00
Tim Graham
d6a9074783
Documented related model descriptor class renames.
...
Renamed in e542e81b39
.
2015-10-26 08:51:09 -04:00
Jon Dufresne
3c7d2ee881
Fixed #25604 -- Added makemigrations --check option.
...
Command exits with non-zero status if changes without migrations exist.
2015-10-24 14:45:00 -04:00
Claude Paroz
c08f85fd54
Fixed #25592 -- Fixed misnamed strictly_above PostGIS lookup
...
Fixes a regression from 2bd1bbc42
. Thanks Daniel Wiesmann for the report
and Tim Graham for the review.
2015-10-22 20:32:31 +02:00
Dheerendra Rathor
59e85f09c6
Fixed #25519 -- Made the admin "View site" link point to sites running on a subpath.
...
Used request.META['SCRIPT_NAME'] as the site_url if it hasn't been
customized from the default value of '/'.
2015-10-22 13:51:00 -04:00
Tim Graham
ee66d8dd7d
Fixed #25584 -- Documented a pip error when installing Django 1.9.
2015-10-22 09:53:46 -04:00
Jon Dufresne
05248a1009
Fixed #25576 -- Added IOBase methods required by TextIOWrapper to HttpResponse.
2015-10-21 10:42:29 -04:00
Yusuke Miyazaki
230d8c7301
Fixed #25578 -- Corrected the casing of "GitHub".
2015-10-21 07:31:11 -04:00
Andrew Artajos
48888a1a67
Fixed #25501 -- Made the file-based cache backend use the highest pickling protocol.
2015-10-20 13:05:33 -04:00
Simon Charette
3db3ab71e9
Fixed #25563 -- Cached deferred models in their proxied model's _meta.apps.
...
Thanks to Andriy Sokolovskiy for the report and Tim Graham for the review.
2015-10-19 20:11:32 -04:00
Aymeric Augustin
df0a446fd4
Fixed #25510 -- Allowed runserver to start with incorrect INSTALLED_APPS.
...
In that case, the content of INSTALLED_APPS will be ignored until it's
fixed and the autoreloader kicks in. I confirmed this behavior manually.
As explained on the ticket it's hard to write a test for this case
2015-10-18 10:34:04 +02:00
Josh Smeaton
6c95b134e9
Fixed #25517 -- Made Concat function idempotent on SQLite.
2015-10-17 15:51:04 -04:00
Tim Graham
4cc6f8b764
Forwardported 1.8.6 release note.
2015-10-14 12:22:53 -07:00
Antoine Catton
b971c1cd78
Fixed #25506 -- Allowed filtering over a RawSQL annotation.
...
Co-Authored-By: Gavin Wahl <gwahl@fusionbox.com>
2015-10-14 11:13:58 -07:00
Simon Charette
5b980897f2
Refs #18012 -- Made proxy and concrete model reverse fields consistent.
...
Prior to this change proxy models reverse fields didn't include the
reverse fields pointing to their concrete model.
2015-10-12 12:14:27 -04:00
Simon Charette
6c9f37ea9e
Fixed #18012 -- Propagated reverse foreign keys from proxy to concrete models.
...
Thanks to Anssi for the review.
2015-10-12 12:14:26 -04:00
Tim Graham
67732a9b18
Fixed #24687 -- Added select_related() validation for nested non-relational fields.
...
The removed test was added in the original select_related() validation
patch (45d4e43d2d
), but there doesn't
seem to be any reason for it.
Thanks Claude Paroz for help and review.
2015-10-10 09:48:50 -04:00
Tim Graham
49320c2b1f
Fixed typo in docs/releases/1.10.txt.
2015-10-09 21:09:25 -04:00
Claude Paroz
37d06cfc46
Fixed #25499 -- Added the ability to pass an expression in distance lookups
...
Thanks Bibhas Debnath for the report and Tim Graham for the review.
2015-10-09 15:27:47 +02:00
Mariusz Felisiak
914167abf1
Fixed #25503 -- Fixed system check crash on ForeignKey to abstract model.
2015-10-06 19:22:37 -04:00
Tim Graham
e0837f2cb1
Fixed #25508 -- Modified QuerySet.__repr__() to disambiguate it from a list.
2015-10-06 12:38:34 -04:00
Riccardo Magliocchetti
3543fec3b7
Refs #12118 -- Allowed "mode=memory" in SQLite test database names.
2015-10-06 12:32:05 -04:00
Tim Graham
6afa6818fc
Fixed #25496 -- Made ModelChoiceField respect prefetch_related().
2015-10-05 18:21:56 -04:00
Jon Dufresne
2875325889
Fixed #25500 -- Added --fail-level option to check command.
...
This option specifies the level that check command exits with a
non-zero status. Default is ``ERROR``.
2015-10-05 17:11:40 -04:00
Tim Graham
b215a3ab63
Fixed #25502 -- Added supported Python versions in 1.7, 1.8 release notes.
2015-10-05 14:19:23 -04:00
John Moses
2b6344e944
Fixed #25037 -- Added request.user to the debug view.
2015-10-05 09:36:42 -04:00
Tim Graham
58195f0b16
Added stub release notes for 1.8.6.
2015-10-03 19:58:02 -04:00
Tim Graham
2eb5589a72
Added release date for 1.8.5.
2015-10-03 19:31:45 -04:00
Ben Kraft
35355a4ffe
Fixed #25389 -- Fixed pickling a SimpleLazyObject wrapping a model.
...
Pickling a `SimpleLazyObject` wrapping a model did not work correctly; in
particular it did not add the `_django_version` attribute added in 42736ac8
.
Now it will handle this and other custom `__reduce__` methods correctly.
2015-10-03 13:00:37 -04:00
Aleksandra Tarkowska
c055224763
Fixed #22938 -- Allowed clearsessions to remove file-based sessions.
2015-10-03 09:21:10 -04:00
Claude Paroz
41ed6338a4
Upgraded OpenLayers version from 2.13 to 2.13.1
...
Thanks Daniel Hahler for the initial patch.
2015-10-03 12:36:39 +02:00
Kaleb Elwert
adcf823359
Fixed #25490 -- Made the logout() view send "no-cache" headers.
2015-10-02 12:29:54 -04:00
Tim Graham
061801e3df
Refs #24505 -- Forwardported 1.8.5 release note.
2015-09-30 18:46:11 -04:00
Tim Graham
8d1a001ef6
Fixed #25466 -- Added backwards compatibility aliases for LoaderOrigin and StringOrigin.
...
Thanks Simon Charette for the DeprecationInstanceCheck class.
2015-09-29 18:31:11 -04:00
Claude Paroz
b7ade64529
Fixed #25468 -- Made DjangoJSONEncoder lazy string aware
...
Thanks Stavros Korokithakis for the report and Tim Graham for the
review.
2015-09-27 22:37:27 +02:00
Mariusz Felisiak
a3a6def867
Fixed #25421 -- Fixed test --keepdb option on Oracle.
2015-09-26 19:51:15 -04:00
Samir Shah
dfa81bb1df
Fixed typo in 1.9 release notes.
2015-09-24 08:01:08 -04:00
Tim Graham
593c9eb660
Increased the default PBKDF2 iterations for the 1.10 release cycle.
2015-09-23 19:31:11 -04:00
Tim Graham
54848a96dd
Removed versionadded/changed annotations for 1.8.
2015-09-23 19:31:11 -04:00
Tim Graham
849037af36
Refs #23957 -- Required session verification per deprecation timeline.
2015-09-23 19:31:10 -04:00
Tim Graham
5d383549ee
Refs #24152 -- Removed deprecated GeoQuerySet aggregate methods.
...
Per deprecation timeline.
2015-09-23 19:31:10 -04:00
Tim Graham
b4002a2143
Refs #22835 -- Removed NoArgsCommand per deprecation timeline.
2015-09-23 19:31:10 -04:00
Tim Graham
6a70cb5397
Refs #19973 -- Removed optparse support in management commands per deprecation timeline.
2015-09-23 19:31:10 -04:00
Tim Graham
1392aff440
Refs #21977 -- Removed SimpleTestCase.urls per deprecation timeline.
2015-09-23 19:31:09 -04:00
Tim Graham
222d063301
Refs #23269 -- Removed the removetags template tag and related functions per deprecation timeline.
2015-09-23 19:31:09 -04:00
Tim Graham
a25d3ce007
Refs #22218 -- Removed conf.urls.patterns() per deprecation timeline.
2015-09-23 19:31:09 -04:00
Tim Graham
04ee4059d7
Refs #24022 -- Removed the ssi tag per deprecation timeline.
2015-09-23 19:31:09 -04:00
Tim Graham
c4e2e9de1f
Added stub 1.10 release notes.
2015-09-23 19:31:08 -04:00
Tim Graham
6b37719616
Refs #24526 -- Made the django logger handle INFO messages.
...
Without an explicit 'level', only messages at WARNING or higher
are handled. This makes the config consistent with the docs
which say, "The django catch-all logger sends all messages at
the INFO level or higher to the console."
2015-09-23 11:33:49 -04:00
Tim Graham
0e723ead52
Refs #21927 -- Added examples to urls.include() changes in 1.9 release notes.
2015-09-23 09:32:35 -04:00
Alex Hill
134ca4d438
Fixed #24509 -- Added Expression support to SQLInsertCompiler
2015-09-22 23:35:24 +10:00
Nick Johnson
392f64842f
Fixed #25373 -- Added warning logging for exceptions during {% include %} tag rendering.
2015-09-21 19:57:12 -04:00
Aymeric Augustin
91e9f1c972
Fixed #24921 -- set_autocommit(False) + ORM queries.
...
This commits lifts the restriction that the outermost atomic block must
be declared with savepoint=False. This restriction was overly cautious.
The logic that makes it safe not to create savepoints for inner blocks
also applies to the outermost block when autocommit is disabled and a
transaction is already active.
This makes it possible to use the ORM after set_autocommit(False).
Previously it didn't work because ORM write operations are protected
with atomic(savepoint=False).
2015-09-21 22:21:53 +02:00
ramez
1335aa2fb9
Fixed #15760 -- Added JavaScript events for admin inline forms.
2015-09-21 15:34:44 -04:00
Claude Paroz
65a1055a36
Fixed #25431 -- Readded inline foreign keys to modelformset instances
...
Too much field exclusions in form's construct_instance() in _post_clean()
could lead to some unexpected missing ForeignKey values.
Fixes a regression from 45e049937
. Refs #13776 .
2015-09-21 21:30:49 +02:00
Alasdair Nicol
fe3fc5210f
Fixed #23813 -- Added checks for common URL pattern errors
...
Thanks jwa and lamby for the suggestions, and timgraham and jarshwah
for their reviews.
2015-09-21 23:46:21 +10:00
Josh Smeaton
534aaf56f4
Fixed #24629 -- Unified Transform and Expression APIs
2015-09-21 19:56:24 +10:00
Tim Graham
ebaa24f588
Removed unused sections in 1.9 release notes.
2015-09-19 20:18:42 -04:00
Tim Graham
bed83e0fb5
Alphabetized a few sections in the 1.9 release notes + made a few tweaks.
2015-09-19 20:15:39 -04:00
Aymeric Augustin
c3904deb91
Fixed #25160 (again) -- Moved data loss check on reverse relations.
...
Moved data loss check when assigning to a reverse one-to-one relation on
an unsaved instance to Model.save(). This is exactly the same change as
e4b813c
but for reverse relations.
2015-09-19 20:27:53 +02:00
Markus Holtermann
43f2eb7ef3
Fixed #25390 -- Allowed specifying a start migration in squashmigrations
...
Thanks Tim Graham for the review.
2015-09-19 14:55:34 +10:00
Markus Holtermann
5aa55038ca
Fixed #24743 , #24745 -- Optimized migration plan handling
...
The change partly goes back to the old behavior for forwards migrations
which should reduce the amount of memory consumption (#24745 ). However,
by the way the current state computation is done (there is no
`state_backwards` on a migration class) this change cannot be applied to
backwards migrations. Hence rolling back migrations still requires the
precomputation and storage of the intermediate migration states.
This improvement also implies that Django does not handle mixed
migration plans anymore. Mixed plans consist of a list of migrations
where some are being applied and others are being unapplied.
Thanks Andrew Godwin, Josh Smeaton and Tim Graham for the review as well
as everybody involved on the ticket that kept me looking into the issue.
2015-09-19 14:54:53 +10:00
fabrizio ettore messina
186eb21dc1
Fixed #25269 -- Allowed method_decorator() to accept a list/tuple of decorators.
2015-09-18 19:04:29 -04:00
sujayskumar
d8d853378b
Fixed #24944 -- Added extra_email_context parameter to password_reset() view.
2015-09-18 18:56:04 -04:00
Unai Zalakain
aac2a2d2ae
Fixed #13110 -- Added support for multiple enclosures in Atom feeds.
...
The ``item_enclosures`` hook returns a list of ``Enclosure`` objects which is
then used by the feed builder. If the feed is a RSS feed, an exception is
raised as RSS feeds don't allow multiple enclosures per feed item.
The ``item_enclosures`` hook defaults to an empty list or, if the
``item_enclosure_url`` hook is defined, to a list with a single ``Enclosure``
built from the ``item_enclosure_url``, ``item_enclosure_length``, and
``item_enclosure_mime_type`` hooks.
2015-09-18 18:31:58 -04:00
Simon Charette
71ebcb85b9
Fixed #25417 -- Added a field check for invalid default values.
2015-09-18 14:31:36 -04:00
Tim Graham
d074926ca1
Dropped support for Oracle 11.1.
2015-09-18 09:18:09 -04:00
Aric Coady
f33b3ebd53
Refs #20625 -- Forwardported tests and release notes for queryset chaining fix.
...
The issue was fixed on master due to the removal of ValuesQuerySet.
Partial forwardport of 7d471fe662
from stable/1.8.x
2015-09-17 19:22:53 -04:00
Aymeric Augustin
4f6a7663bc
Refs #14091 -- Fixed connection.queries on SQLite.
2015-09-17 23:01:33 +02:00
Matt Robenolt
b0c56b895f
Fixed #24496 -- Added CSRF Referer checking against CSRF_COOKIE_DOMAIN.
...
Thanks Seth Gottlieb for help with the documentation and
Carl Meyer and Joshua Kehn for reviews.
2015-09-16 12:21:50 -04:00
Moritz Sichert
535809e121
Fixed #25294 -- Allowed custom BoundFields on forms.
2015-09-16 10:18:07 -04:00
Adam Chainz
3fe3887a2e
Fixed #25377 -- Changed Count queries to execute COUNT(*) instead of COUNT('*').
2015-09-14 13:41:35 -04:00
Ville Skyttä
4d933ad418
Fixed #25393 -- Fixed MySQL crash when adding text/blob field with unhashable default.
2015-09-14 12:25:08 -04:00
Markus Holtermann
84b0a8d2aa
Fixed #25384 -- Ordered imports in newly created migration files
...
Partial forwardport of 3cc5cc7958
from
stable/1.8.x as the issue was already fixed in master in
a7bc00e17b
2015-09-12 21:37:18 +10:00
Markus Holtermann
a3c01b0dd8
Fixed #24919 -- Allowed disabling of migrations on a per app basis
2015-09-12 10:38:15 +10:00
Malcolm Box
1d8eb0cae5
Fixed #25374 -- Made ModelAdmin checks work on instances instead of classes.
...
This allows dynamically-generated attributes to be specified in
checked ModelAdmin attributes without triggering errors.
2015-09-11 09:28:34 -04:00
Aymeric Augustin
a32206b365
Documented that the parallel test runner doesn't work on Windows.
2015-09-10 15:41:26 +02:00
Aymeric Augustin
33c7c2a557
Enabled parallel testing by default in runtests.py.
2015-09-10 13:34:05 +02:00
Aymeric Augustin
326bc0955b
Allowed a port range for the liveserver by default.
...
This is required for running tests in parallel.
2015-09-09 23:01:16 +02:00
Aymeric Augustin
0586c061f0
Cloned databases for running tests in parallel.
2015-09-09 23:01:15 +02:00
Aymeric Augustin
cd9fcd4e80
Implemented a parallel test runner.
2015-09-09 23:01:10 +02:00
Daniel Hahler
acb833081d
Fixed #25372 -- Fixed autocompletion for options of non-argparse commands.
2015-09-09 14:51:41 -04:00
Ola Sitarska
f2f8972def
Fixed #25135 -- Deprecated the contrib.admin allow_tags attribute.
...
Thanks Jaap Roes for the idea and initial patch.
2015-09-08 19:13:43 -04:00
Raphael Michel
1bbca7961c
Fixed #25350 -- Added alias --no-input for --noinput to management commands.
2015-09-08 08:41:03 -04:00
Ryan Hiebert
617eff41ac
Fixed #24857 -- Added "python -m django" entry point.
2015-09-07 19:54:32 -04:00
Tim Graham
862de0b254
Fixed #25356 -- Removed default_app_config from startapp template.
...
Also discouraged its use outside the intended use case.
2015-09-07 15:23:11 -04:00
Zan Anderle
f3dc173240
Fixed #24917 -- Made admindocs display model methods that take arguments.
2015-09-07 15:07:39 -04:00
Aymeric Augustin
e8bfc1c747
Stopped returning mirrors from setup_databases.
...
The return value of setup_databases is only used as an argument for
teardown_databases which doesn't need mirrors.
2015-09-06 09:28:16 +02:00
Joshua Kehn
ab26b65b2f
Fixed #25334 -- Provided a way to allow cross-origin unsafe requests over HTTPS.
...
Added the CSRF_TRUSTED_ORIGINS setting which contains a list of other
domains that are included during the CSRF Referer header verification
for secure (HTTPS) requests.
2015-09-05 09:19:57 -04:00
Tim Graham
2dc9ec5616
Fixed #24525 -- Fixed AssertionError in some complex queries.
...
Thanks Anssi Kääriäinen for providing the solution.
2015-09-05 07:51:17 -04:00
Tim Graham
721d8e50ac
Fixed #25144 -- Allowed migrate to create tables for apps without migrations.
2015-09-04 09:47:30 -04:00
Tim Graham
a8eb715b66
Refs #24152 -- Fixed typos in deprecated GeoQuerySet aggregate names.
2015-09-02 19:57:08 -04:00
Tim Graham
123984ff66
Fixed #25289 -- Updated admin's jQuery to 2.1.4.
2015-08-31 09:39:43 -04:00
Aymeric Augustin
fe6ddb837d
Fixed #24704 -- Made the autoreloader survive SyntaxErrors.
...
With this change, it's expected to survive anything except errors
that make it impossible to import the settings. It's too complex
to fallback to a sensible behavior with a broken settings module.
Harcoding things about runserver in ManagementUtility.execute is
atrocious but it's the only way out of the chicken'n'egg problem:
the current implementation of the autoreloader primarily watches
imported Python modules -- and then a few other things that were
bolted on top of this design -- but we want it to kick in even if
the project contains import-time errors and django.setup() fails.
At some point we should throw away this code and replace it by an
off-the-shelf autoreloader that watches the working directory and
re-runs `django-admin runserver` whenever something changes.
2015-08-29 20:49:56 +02:00
Y3K
b649f68649
Fixed #25262 -- Removed the enable_comments field from FlatPageAdmin.
2015-08-29 08:55:50 -04:00
Sergey Kolosov
e75882332c
Fixed #17375 -- Changed makemessages to use xgettext with --files-from
...
Changed the way makemessages invokes xgettext from one call per
translatable file to one call per locale directory (using --files-from).
This allows to avoid https://savannah.gnu.org/bugs/index.php?35027 and,
as a positive side effect, speeds up localization build.
2015-08-28 15:41:58 -04:00
Tim Graham
01b2b0b654
Fixed #25318 -- Made SILENCED_SYSTEM_CHECKS suppress all messages.
...
Previously, messages of ERROR level or higher were printed to
the console.
2015-08-28 13:34:56 -04:00
Tim Graham
9607a04041
Fixed #25299 -- Fixed crash with ModelAdmin.list_display value that clashes with a model reverse accessor.
2015-08-28 08:46:26 -04:00
Tim Graham
22a791e608
Refs #20597 -- Fixed spelling of HiDPI.
2015-08-27 19:32:57 -04:00
elky
c32b61c6fd
Fixed #20597 -- Replaced admin GIF/PNG icons by SVG
2015-08-27 17:21:02 -04:00
Sergey Kolosov
22bb548900
Fixed #22634 -- Made the database-backed session backends more extensible.
...
Introduced an AbstractBaseSession model and hooks providing the option
of overriding the model class used by the session store and the session
store class used by the model.
2015-08-27 15:00:09 -04:00
Alex Hill
7bec480fe2
Fixed #24201 -- Added order_with_respect_to support to GenericForeignKey.
2015-08-27 09:20:17 -04:00
Claude Paroz
9324935c3e
Fixed #25295 -- Restored 'no active translation' after language override
...
Thanks David Nelson Adamec for the report and Tim Graham for the review.
2015-08-25 10:32:10 +02:00
Maxime Lorant
4ce433e811
Fixed #25302 -- Prevented BrokenLinkEmailsMiddleware from reporting 404s when Referer = URL.
2015-08-24 19:35:49 -04:00
Tim Graham
26dcf739ea
Forwardported release note for refs #25040 .
2015-08-22 08:50:49 -04:00
Tim Graham
d3bc86ec11
Fixed #25284 -- Documented removal of implicit QuerySet __in lookups.
2015-08-21 11:04:22 -04:00
Tim Graham
333cbdcd2d
Fixed #24951 -- Fixed AssertionError in delete queries involving a foreign/primary key.
...
Thanks Anssi Kääriäinen for help.
2015-08-20 08:14:16 -04:00
Tim Graham
47201371d2
Refs #24451 -- Corrected Django version for {% cycle %} deprecation.
2015-08-19 08:37:27 -04:00
Tim Graham
84335e3d1f
Added stub release notes for 1.8.5.
2015-08-18 19:52:45 -04:00
Anton Strogonoff
20787b5c29
Used consistent capitalization and hyphenation of "class-based views" in docs.
2015-08-18 19:07:10 -04:00
Tim Graham
068a80d717
Added today's issue to the security archive.
2015-08-18 13:46:47 -04:00
Tim Graham
8cc41ce7a7
Fixed DoS possiblity in contrib.auth.views.logout()
...
Thanks Florian Apolloner and Carl Meyer for review.
This is a security fix.
2015-08-18 08:03:43 -04:00
Tim Graham
b0ab74dfca
Added stub release notes for security releases.
2015-08-18 08:03:39 -04:00
Caio Ariede
dad8434d6f
Fixed #25180 -- Prevented varchar_patterns_ops and text_patterns_ops indexes for ArrayField.
2015-08-15 10:02:08 -04:00