Tim Graham
f77fc56c96
Fixed #29896 -- Fixed incorrect Model.save() cache relation clearing for foreign keys that use to_field.
...
Regression in ee49306176
.
2018-10-28 22:54:02 -04:00
Tim Graham
f892781b95
Fixed #28606 -- Deprecated CachedStaticFilesStorage.
2018-10-27 11:58:29 -04:00
Mariusz Felisiak
c6525bea9e
Fixed #29534 -- Made dbshell use rlwrap on Oracle if available.
2018-10-25 19:39:42 -04:00
Sergey Fedoseev
9a88c6dd6a
Fixed #29827 -- Fixed reuse of test databases with --keepdb on MySQL.
...
Regression in e1253bc26f
.
2018-10-25 19:37:41 -04:00
Mayank Singhal
76b3367035
Fixed #29879 -- Added CSRF_COOKIE_HTTPONLY to CSRF AJAX docs.
2018-10-25 11:39:52 -04:00
Tim Graham
9b52bd6575
Made DatabaseFeatures.uses_savepoints default to True.
2018-10-25 10:02:47 -04:00
Hemanth V. Alluri
fd49701ab9
Removed a useless sentence in docs/ref/unicode.txt.
2018-10-24 20:01:19 -04:00
Prabakaran Kumaresshan
10d82c85aa
Fixed #29831 -- Added validation for makemigrations --name.
2018-10-23 10:05:24 -04:00
Jon Dufresne
136a900ef9
Refs #29877 -- Made diveinto.org URLs HTTPS.
2018-10-23 15:03:00 +02:00
za
b0d716cbff
Fixed #29877 -- Replaced diveintopython3.net with diveinto.org/python3/.
2018-10-23 11:55:18 +02:00
Tim Graham
043407ec7e
Fixed #29880 -- Fixed typo in docs/topics/auth/default.txt.
2018-10-22 15:16:11 -04:00
buzzi
24cae0bedc
Fixed #29860 -- Allowed BaseValidator to accept a callable limit_value.
2018-10-22 10:26:54 -04:00
Atul Varma
3deea61f26
Removed "encoding" description in GIS tutorial.
...
An omission in 388165ade4
.
2018-10-21 12:14:06 -04:00
Mariusz Felisiak
328f5627dd
Fixed #29870 -- Added DurationField introspection for Oracle and PostgreSQL.
...
Thanks Tim Graham for the review.
2018-10-21 09:08:05 +02:00
Adam Allred
4e78e389b1
Fixed #29774 -- Fixed django-admin shell hang on startup.
...
sys.stdin.read() blocks waiting for EOF in shell.py which will
likely never come if the user provides input on stdin via the
keyboard before the shell starts. Added check for a tty to
skip reading stdin if it's not present.
This still allows piping of code into the shell (which should
have no TTY and should have an EOF) but also doesn't cause it
to hang if multi-line input is provided.
2018-10-19 20:00:12 -04:00
Tim Graham
a29fce8984
Fixed #29858 -- Clarified docs regarding CSRF token header name.
2018-10-18 19:44:15 -04:00
Andy Chosak
084573c715
Updated Jinja2 static tag example to use django.templatetags.
...
As of cf546e11ac
, this is the
canonical way to invoke the static tag.
2018-10-18 19:19:56 -04:00
aspalding
dc5e75d419
Fixed #29838 -- Fixed crash when combining Q objects with __in lookups and lists.
...
Regression in fc6528b25a
.
2018-10-17 11:34:49 -04:00
Tom Dyson
6752c2756e
Removed obsolete "ugly URL" reference.
2018-10-17 10:20:18 -04:00
Florian Apolloner
bc7dd8490b
Fixed #21171 -- Avoided starting a transaction when a single (or atomic queries) are executed.
...
Checked the following locations:
* Model.save(): If there are parents involved, take the safe way and use
transactions since this should be an all or nothing operation.
If the model has no parents:
* Signals are executed before and after the previous existing
transaction -- they were never been part of the transaction.
* if `force_insert` is set then only one query is executed -> atomic
by definition and no transaction needed.
* same applies to `force_update`.
* If a primary key is set and no `force_*` is set Django will try an
UPDATE and if that returns zero rows it tries an INSERT. The first
case is completly save (single query). In the second case a
transaction should not produce different results since the update
query is basically a no-op then (might miss something though).
* QuerySet.update(): no signals issued, single query -> no transaction
needed.
* Model/Collector.delete(): This one is fun due to the fact that is
does many things at once.
Most importantly though: It does send signals as part of the
transaction, so for maximum backwards compatibility we need to be
conservative.
To ensure maximum compatibility the transaction here is removed only
if the following holds true:
* A single instance is being deleted.
* There are no signal handlers attached to that instance.
* There are no deletions/updates to cascade.
* There are no parents which also need deletion.
2018-10-17 12:19:02 +02:00
Çağıl
38f3de86bd
Added a paragraph in docs/intro/contributing.txt.
2018-10-16 16:10:44 -04:00
Jon Dufresne
0cd465b63a
Fixed #29817 -- Deprecated settings.FILE_CHARSET.
2018-10-15 17:15:41 -04:00
Peter Inglesby
a1ffbfb801
Removed unused fields from aggregation docs.
2018-10-13 21:13:45 -04:00
Adam Johnson
cecd656184
Simplified deployment checklist docs on customizing error views.
2018-10-11 09:50:08 -04:00
Patrik Sletmo
adfdb9f169
Fixed #29814 -- Added support for NoneType serialization in migrations.
2018-10-11 09:02:14 -04:00
Mariusz Felisiak
52fec5d18f
Fixed #29836 -- Bumped required cx_Oracle to 6.0.
2018-10-11 11:43:16 +02:00
Andrea Rabbaglietti
1b49b792e9
Emphasized that ForeignKey.on_delete doesn't create a SQL constraint.
2018-10-10 14:56:50 -04:00
Jon Dufresne
c82893cb8c
Refs #27795 -- Removed force_bytes() usage from django/utils/http.py.
...
django.utils.http.urlsafe_base64_encode() now returns a string, not a
bytestring. Since URLs are represented as strings,
urlsafe_base64_encode() should return a string. All uses immediately
decoded the bytestring to a string anyway.
As the inverse operation, urlsafe_base64_decode() accepts a string.
2018-10-10 14:38:22 -04:00
Jon Dufresne
e90af8bad4
Capitalized "Python" in docs and comments.
2018-10-09 09:26:07 -04:00
Kate Berry
b8b1d8cad6
Improved tone in docs/ref/settings.txt.
2018-10-04 11:35:19 -04:00
Jon Dufresne
f5d9ee11a2
Refs #27778 -- Removed "The database API" section from "Unicode data" docs.
...
Support for passing bytestrings to the database API was removed in
301de774c2
.
2018-10-04 09:10:20 -04:00
ovalseven8
d093e01ec0
Clarified when QuerySet.select_for_update() locks.
2018-10-03 15:29:33 -04:00
Adam Johnson
18e4ade79e
Fixed #28034 -- Updated the contributing tutorial to use an imaginary ticket.
2018-10-03 14:34:25 -04:00
Jon Dufresne
3212008ba6
Corrected docs to say that all templates are text strings.
...
Support for bytestring templates was removed in
3a148f958d
.
2018-10-03 10:05:17 +02:00
Stefano Chiodino
6de7f9ec60
Fixed #29598 -- Deprecated FloatRangeField in favor of DecimalRangeField.
2018-10-02 19:17:23 -04:00
Nick Pope
bf8b625a3b
Refs #29722 -- Added introspection of materialized views for PostgreSQL.
2018-10-02 14:02:04 -04:00
Nick Pope
45ef3df7d0
Fixed #29719 -- Added introspection of foreign tables for PostgreSQL.
...
Thanks infinite-l00p for the initial patch.
2018-10-02 14:01:24 -04:00
Tim Graham
31edb106b5
Removed docs for obsolete limitations of inspectdb.
2018-10-02 13:29:18 -04:00
Simon Charette
9142bebff2
Refs #11964 -- Changed CheckConstraint() signature to use keyword-only arguments.
...
Also renamed the `constraint` argument to `check` to better represent which
part of the constraint the provided `Q` object represents.
2018-10-02 10:53:04 -04:00
Przemysław Buczkowski
70d0a1ca02
Fixed #29711 -- Added a system check for uniquness of admin actions' __name__.
2018-10-02 09:17:23 -04:00
Tim Graham
7206601040
Fixed crash building translated docs since Sphinx 1.8.
2018-10-01 20:44:02 -04:00
Cammil Taank
f83a689f61
Fixed #29758 -- Documented how to test custom error views.
2018-10-01 18:16:47 -04:00
Jon Dufresne
b3b47bf515
Added tests for using bytearray with BinaryField and corrected docs.
2018-10-01 09:16:16 -04:00
Carlton Gibson
92ccc39170
Adjusted text for CVE-2018-16984 in security release archive.
2018-10-01 14:58:23 +02:00
Carlton Gibson
0b3b7c4b0a
Added CVE-2018-16984 to the security release archive.
2018-10-01 11:54:31 +02:00
Carlton Gibson
dc28c0faf3
Added stub release notes for 2.1.3 release.
2018-10-01 11:48:11 +02:00
Carlton Gibson
2e86710dac
Added stub release notes for 2.0.10 release.
2018-10-01 11:46:38 +02:00
Carlton Gibson
7040e638b9
Added stub release notes for 1.11.17 release.
2018-10-01 11:44:36 +02:00
Carlton Gibson
fb7fd884a1
Added release date for 2.1.2 release.
2018-10-01 10:10:48 +02:00
Tim Graham
a7284cc0c3
Fixed #29809 -- Fixed a crash when a "view only" user POSTs to the admin user change form.
2018-10-01 10:09:50 +02:00
Carlton Gibson
bf39978a53
Fixed CVE-2018-16984 -- Fixed password hash disclosure to admin "view only" users.
...
Thanks Claude Paroz & Tim Graham for collaborating on the patch.
2018-10-01 10:05:01 +02:00
Carlton Gibson
a4932be483
Added release date for 2.0.9 release.
2018-10-01 09:55:56 +02:00
Carlton Gibson
d37ed40048
Added release date for 1.11.16.
2018-10-01 09:34:57 +02:00
Claude Paroz
033d842e84
Updated translations from Transifex
...
Forward port of d5ed08263b
from master.
2018-09-29 17:11:49 +02:00
Sergey Fedoseev
8ef8bc0f64
Refs #28909 -- Simplifed code using unpacking generalizations.
2018-09-28 09:57:12 -04:00
Paweł Kołodziej
05c578bc1f
Fixed #29796 -- Added system check for STATICFILES_DIRS prefix ending with a slash.
2018-09-27 19:49:37 -04:00
Stephen James
e40e7026ca
Fixed #29683 -- Added view permission to docs.
2018-09-26 15:06:43 -04:00
Jon Dufresne
fb2964a410
Added test of filtering on BinaryField and corrected docs.
2018-09-26 14:38:12 -04:00
Mariusz Felisiak
024abe5b82
Fixed #29630 -- Fixed crash of sliced queries with multiple columns with the same name on Oracle 12.1.
...
Regression in 0899d583bd
.
Thanks Tim Graham for the review and Jani Tiainen for help.
2018-09-26 20:18:48 +02:00
Sergey Fedoseev
51da347c32
Fixed #29795 -- Confirmed support for PostGIS 2.5.
2018-09-26 13:36:38 -04:00
Jon Dufresne
82f286cf6f
Refs #29784 -- Switched to https:// links where available.
2018-09-26 08:48:47 +02:00
Oleg
d1d5c97bc2
Fixed #29778 -- Fixed quoting of unique index names.
...
Regression in 3b429c9673
.
2018-09-25 16:00:20 -04:00
Jon Dufresne
bb81c22d90
Refs #27795 -- Removed force_bytes() usage in utils/_os.py.
2018-09-25 11:27:36 -04:00
Jon Dufresne
8c3e0eb1c1
Normalized spelling of "lowercase" and "lowercased".
2018-09-25 10:30:18 -04:00
Jon Dufresne
ad9a28ee38
Refs #29784 -- Normalized Python docs links to omit the version.
2018-09-25 10:19:42 +02:00
Jon Dufresne
3a3d159ab6
Refs #29784 -- Changed Python f-string link to use intersphinx.
2018-09-25 10:19:42 +02:00
Thomas Grainger
c99d379f53
Updated contributing tutorial's virtual environment instructions.
2018-09-19 14:37:44 -04:00
Tom Forbes
9cbdb44014
Fixed #23646 -- Added QuerySet.bulk_update() to efficiently update many models.
2018-09-18 16:14:44 -04:00
Tim Graham
0192e9a976
Fixed typo in docs/releases/2.1.txt.
2018-09-18 15:46:38 -04:00
Tim Graham
7ed4713a90
Removed obsolete html_use_smartypants Sphinx option.
2018-09-18 11:51:04 -04:00
Adam Johnson
beffa061eb
Made various edits to docs/ref/utils.txt.
2018-09-18 11:26:06 -04:00
Sergey Fedoseev
8aad4a38ae
Confirmed support for GEOS 3.7.
2018-09-18 09:52:02 -04:00
Claude Paroz
f5e347a640
Fixed #27899 -- Added support for phrase/raw searching in SearchQuery.
...
Thanks Tim Graham, Nick Pope, and Claude Paroz for contribution and review.
2018-09-17 12:03:52 -04:00
Sergey Fedoseev
c5e450ac95
Fixed #29761 -- Confirmed support for PROJ 5.x.
2018-09-17 12:03:30 -04:00
jtiai
583b9fc410
Fixed #29757 -- Documented Oracle DSN and Easy Connect options.
2018-09-17 10:24:51 -04:00
Mariusz Felisiak
da92ec7962
Fixed #29759 -- Fixed crash on Oracle when fetching a returned insert id with cx_Oracle 7.
2018-09-16 12:45:34 +02:00
Adam Johnson
245c36d7b6
Fixed #29642 -- Added check for arguments of custom error handler views.
2018-09-14 11:59:56 -04:00
Tim Graham
d483a5f0dc
Fixed #29756 -- Doc'd that model field names can't end with an underscore.
2018-09-14 11:38:39 -04:00
Simon Charette
a4495f4b98
Fixed #29755 -- Made migrations detect changes to Meta.default_related_name.
2018-09-14 09:09:17 -04:00
Ramiro Morales
1b1f64ee5a
Refs #14357 -- Deprecated Meta.ordering affecting GROUP BY queries.
...
Thanks Ramiro Morales for contributing to the patch.
2018-09-13 12:29:48 -04:00
Adam Zapletal
57fd3700d4
Fixed typo in docs/ref/contrib/postgres/search.txt.
2018-09-12 18:12:34 -04:00
Stephen Finucane
25f4302349
Emphasized that TemplatesSetting must be used to override widget templates.
2018-09-11 15:14:53 -04:00
Tim Graham
32fbccab40
Fixed #29749 -- Made the migrations loader ignore files starting with a tilde or underscore.
...
Regression in 29150d5da8
.
2018-09-11 12:51:11 -04:00
Hasan Ramezani
5195b99e2c
Fixed #29560 -- Added --force-color management command option.
2018-09-11 11:15:42 -04:00
Tim Graham
a0ef6a0e22
Fixed env.note_versionchange() deprecation warning in Sphinx 1.8.
2018-09-11 09:22:35 -04:00
Tim Graham
cc4bb110d3
Removed usage of deprecated sphinx APIs.
2018-09-10 16:08:21 -04:00
melipone
28dac56aed
Fixed #16995 -- Clarified interaction of initial and extra with model formsets.
2018-09-10 15:27:42 -04:00
Curtis Maloney
c49ea6f591
Refs #20910 -- Replaced snippet directive with code-block.
2018-09-10 13:00:34 -04:00
Adam Johnson
f8ff529ee3
Fixed #29729 -- Updated contributing tutorial to run tests on master.
2018-09-10 10:47:42 -04:00
Vishvajit Pathak
a48bc0cec9
Fixed #29573 -- Added links in aggregation topic guide.
2018-09-10 09:53:19 -04:00
Alexander Holmbäck
f315d0423a
Fixed #29727 -- Made nonexistent joins in F() raise FieldError.
...
Regression in 2162f0983d
.
2018-09-08 09:40:33 -04:00
Nick Pope
570402ffd7
Refs #29713 -- Improved error message from translation system check.
2018-09-06 13:49:25 +02:00
flh
ccf870ebf5
Corrected forms.TimeField's default widget in docs.
2018-09-04 18:18:42 -05:00
David
5db8d617c0
Fixed #29713 -- Added check that LANGUAGE_CODE uses standard language id format.
2018-09-03 10:43:55 +02:00
Josh Schneier
3509fb54bb
Refs #29426 -- Fixed typo in docs/releases/2.2.txt.
2018-08-31 10:22:42 -04:00
Carlton Gibson
728ee98cd3
Added stub release notes for 2.1.2.
2018-08-31 11:01:29 +02:00
Carlton Gibson
fff25d6d0c
Added release date for 2.1.1.
2018-08-31 10:12:51 +02:00
Tim Graham
fd8a7a5313
Fixed #29723 -- Fixed crash if InlineModelAdmin.has_add_permission() doesn't accept the obj argument.
...
* Refs #27991 -- Added testing for ModelAdmin.get_inline_instances() if the inline's has_add_permission() doesn't accept 'obj'.
* Fixed #29723 -- Fixed crash if InlineModelAdmin.has_add_permission() doesn't accept the obj argument.
2018-08-30 11:22:50 +02:00
Mariusz Felisiak
39461a83c3
Fixed #29694 -- Fixed column mismatch crash with QuerySet.values() or values_list() after combining querysets with extra() with union(), difference(), or intersection().
...
Regression in 0b66c3b442
.
2018-08-29 10:00:15 +02:00
Tim Graham
166dec8406
Fixed #29718 -- Doc'd admin template collision backwards incompatibility in Django 2.1.
2018-08-28 14:40:08 -04:00