summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2018-12-03[2.1.x] Fixed #29930 -- Allowed editing in admin with view-only inlines.Carlton Gibson
Co-authored-by: Tim Graham <timograham@gmail.com> Backport of 8245c99ee6032c2748ba46583d8cab15b2f9438e from master
2018-11-28[2.1.x] Fixed #29929 -- Fixed admin view-only change form crash when using ↵Basil Dubyk
ModelAdmin.prepopulated_fields. Backport of 7d1123e5ada60963ba3c708a8932e57342278706 from master.
2018-11-20[2.1.x] Fixed #29849 -- Fixed keep-alive support in runserver.Florian Apolloner
Ticket #25619 changed the default protocol to HTTP/1.1 but did not properly implement keep-alive. As a "fix" keep-alive was disabled in ticket #28440 to prevent clients from hanging (they expect the server to send more data if the connection is not closed and there is no content length set). The combination of those two fixes resulted in yet another problem: HTTP/1.1 by default allows a client to assume that keep-alive is supported unless the server disables it via 'Connection: close' -- see RFC2616 8.1.2.1 for details on persistent connection negotiation. Now if the client receives a response from Django without 'Connection: close' and immediately sends a new request (on the same tcp connection) before our server closes the tcp connection, it will error out at some point because the connection does get closed a few milli seconds later. This patch fixes the mentioned issues by always sending 'Connection: close' if we cannot determine a content length. The code is inefficient in the sense that it does not allow for persistent connections when chunked responses are used, but that should not really cause any problems (Django does not generate those) and it only affects the development server anyways. Refs #25619, #28440. Regression in ac756f16c5bbbe544ad82a8f3ab2eac6cccdb62e. Backport of 934acf1126995f6e6ccba5947ec8f7561633c27f from master.
2018-11-15[2.1.x] Fixed #29952 -- Lowercased all passwords in contrib.auth's ↵Mathew Payne
auth/common-passwords.txt.gz. Backport of 26bb2611a567d43bc258aa7806eef766b7adcfe5 from master.
2018-11-10[2.1.x] Removed obsolete and flaky GeoIP tests.Tom Forbes
Backport of 8f90593e6f8197148c8f86e598bfef6792f3f4bf from master.
2018-10-31[2.1.x] Fixed #29890 -- Fixed FileSystemStorage crash if concurrent saves ↵Tim Graham
try to create the same directory. Regression in 632c4ffd9cb1da273303bcd8005fff216506c795. Backport of 98ef3829e96ebc73d4d446f92465e671ff520d2b from master.
2018-10-28[2.1.x] Fixed #29896 -- Fixed incorrect Model.save() cache relation clearing ↵Tim Graham
for foreign keys that use to_field. Regression in ee49306176a2d2f1751cb890bd607d42c7c09196. Backport of f77fc56c9671a2e2498e3920d79e247e6de18c16 from master.
2018-10-25[2.1.x] Fixed #29827 -- Fixed reuse of test databases with --keepdb on MySQL.Sergey Fedoseev
Regression in e1253bc26facfa1d0fca161f43925e99c2591ced. Backport of 9a88c6dd6aa84a1b35e585faa0058a0996cc7ed7 from master.
2018-10-17[2.1.x] Fixed #29838 -- Fixed crash when combining Q objects with __in ↵aspalding
lookups and lists. Regression in fc6528b25ab1834be1a478b405bf8f7ec5cf860c. Backport of 834c4ec8e4cfc43acf0525e0a4d8c914534f6afd, 217f82d7139fd32f07adbfa92c5fb383d0ade577, and dc5e75d419893bde33b7e439b59bdf271fc1a3f2 from master.
2018-10-09[2.1.x] Refs #29784 -- Switched to https:// links where available.Jon Dufresne
Backport of 82f286cf6f198d37850d3c5df637b5665566a66b from master.
2018-10-09[2.1.x] Capitalized "Python" in docs and comments.Jon Dufresne
Backport of e90af8bad44341cf8ebd469dac57b61a95667c1d from master.
2018-10-03Revert "[2.1.x] Refs #27795 -- Removed force_bytes() usage in sessions."Carlton Gibson
This reverts commit f3f31b0fc26f772b198c9683a427f2f7fe208c37.
2018-10-03[2.1.x] Refs #27795 -- Removed force_bytes() usage in sessions.Jon Dufresne
SessionBase.decode() is the inverse operation to SessionBase.encode(). As SessionBase.encode() always returns a string, SessionBase.decode() should always be passed a string argument. Fixed the file backend, which was the only backend still passing a bytestring. Backport of bdae19cf6395d6bfee80864d9e87c4aec241eceb from master
2018-10-02[2.1.x] Fixed #29813 -- Fixed DatabaseOperation test when run in isolation ↵Jon Dufresne
on MySQL. Backport of 7598cd4748dc402b0209e5eedb6d2a83c3da1620 from master.
2018-10-01[2.1.x] Added tests for using bytearray with BinaryField and corrected docs.Jon Dufresne
Backport of b3b47bf5156d400595363fa0029e51ce3f974ff0 from master.
2018-10-01[2.1.x] Fixed #29809 -- Fixed a crash when a "view only" user POSTs to the ↵Tim Graham
admin user change form. Backport of a7284cc0c3620030b43034cdf41216c0941bf411 from master
2018-10-01Fixed CVE-2018-16984 -- Fixed password hash disclosure to admin "view only" ↵Carlton Gibson
users. Thanks Claude Paroz & Tim Graham for collaborating on the patch. # Conflicts: # tests/auth_tests/test_views.py
2018-09-29[2.1.x] Refs #21408 -- Updated naturaltime translation test.Claude Paroz
Upcoming German translations will not differ for past and future naturaltime translations. Using Czech language instead. Backport of ddcb9e806275114c91bbed90bc917374ba08a9ae from master
2018-09-26[2.1.x] Added test of filtering on BinaryField and corrected docs.Jon Dufresne
Backport of fb2964a4106b1282c4179b6fbbd0374f5be1ccac from master.
2018-09-26[2.1.x] Fixed #29630 -- Fixed crash of sliced queries with multiple columns ↵Mariusz Felisiak
with the same name on Oracle 12.1. Regression in 0899d583bdb140910698d00d17f5f1abc8774b07. Thanks Tim Graham for the review and Jani Tiainen for help. Backport of 024abe5b82d95ee60cb18a77ebf841ad715467fa from master
2018-09-25[2.1.x] Fixed #29778 -- Fixed quoting of unique index names.Oleg
Regression in 3b429c96736b8328c40e5d77282b0d30de563c3c. Backport of d1d5c97bc2821bf8c0f4b2d9c7ab16200845b494 from master.
2018-09-25[2.1.x] Refs #29784 -- Normalized Python docs links to omit the version.Jon Dufresne
Backport of ad9a28ee38e3352b16cc6c9ae7f55f90c64710cc from master.
2018-09-14[2.1.x] Fixed #29755 -- Made migrations detect changes to ↵Simon Charette
Meta.default_related_name. Backport of a4495f4b989dc919d80fcf9f38e31e247faa94fb from master
2018-09-11[2.1.x] Fixed #29749 -- Made the migrations loader ignore files starting ↵Tim Graham
with a tilde or underscore. Regression in 29150d5da880ac1db15e47052330790cf1b802d2. Backport of 32fbccab406b680bc0a0a8d39a9b95c3a08bbc5a from master
2018-09-08[2.1.x] Fixed #29727 -- Made nonexistent joins in F() raise FieldError.Alexander Holmbäck
Regression in 2162f0983de0dfe2178531638ce7ea56f54dd4e7. Backport of f315d0423a09dfe20dd4d4f6a0eb11fc8e45a665 from master
2018-09-08[2.1.x] Moved test for nonexistent field in F() to BasicExpressionsTest.Alexander Holmbäck
Backport of aa16ec54747eaa9da7534e67a1de320b9a517c1c from master
2018-09-01[2.1.x] Refs #16470 -- Fixed typo in a FileResponse test.James Aylett
Backport of ee52044a278885bd9455dd59b1e16c5d5e2d68ce from master.
2018-08-30[2.1.x] Fixed #29723 -- Fixed crash if InlineModelAdmin.has_add_permission() ↵Tim Graham
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. Backport of fd8a7a5313f5e223212085b2e470e43c0047e066 from master
2018-08-29[2.1.x] Fixed #29694 -- Fixed column mismatch crash with QuerySet.values() ↵Mariusz Felisiak
or values_list() after combining querysets with extra() with union(), difference(), or intersection(). Regression in 0b66c3b442875627fa6daef4ac1e90900d74290b. Backport of 39461a83c33f0cfe719d3b139413d1f5d1e75d5e from master
2018-08-20[2.1.x] Fixed #29682 -- Fixed admin change form crash if a view-only model's ↵Tim Graham
form has an extra field. Backport of d311124be59df64278f3149d68e79ce45b8a6c64 from master
2018-08-17[2.1.x] Refs #29015 -- Added database name to PostgreSQL database name too ↵Jon Dufresne
long exception. Backport of bf17f5e88466e3f571065345f5b2fea0d8af89fe from master
2018-08-17[2.1.x] Fixed #29663 -- Made admin change view redirect to changelist with ↵Jon Dufresne
view permission. Backport of 09ee3b6fe3c4d80bb445835f88148d6f48cde3ff from master
2018-08-15[2.1.x] Fixed #29662 -- Allowed test client to accept structured suffix JSON ↵Marnanel Thurman
content types. Backport of 7cc52250f06c2a4769badbab1d7ee01f8e3cb46a from master
2018-08-10[2.1.x] Fixed #29653 -- Fixed missing related_query_name reverse accessor if ↵Ramiro Morales
GenericRelation is declared on an abstract base model. Regression in 4ab027b94409e6415b774797bf9d3593da9d9ea8. Thanks Lauri Kainulainen for the report. Backport of b5c7cb4d3306a7b4e8f87bcf365ff30ae53018ed from master
2018-08-10[2.1.x] Fixed #29637 -- Fixed admin change form crash if the user doesn’t ↵Clément Mangin
have the add permission to a TabularInline. Regression in 825f0beda804e48e9197fcf3b0d909f9f548aa47. Backport of 64e1a271f50d921a54388539b6ff7102a31c3d29 from master
2018-08-08[2.1.x] Fixed #29623 -- Fixed translation failure of DurationField's ↵Tim Graham
"overflow" error message. Backport of 730173d1c5cf210d8e3bd951fa49f64b9bc561ca from master
2018-08-08[2.1.x] Fixed #29643 -- Fixed crash when combining Q objects with __in ↵Mariusz Felisiak
lookups and lists. Regression in fc6528b25ab1834be1a478b405bf8f7ec5cf860c. Backport of 9fee229874367beafd532dad6d0f9ff9676ded0b from master
2018-08-03[2.1.x] Fixed #29613 -- Fixed --keepdb on PostgreSQL if the database exists ↵Mariusz Felisiak
and the user can't create databases. Regression in e776dd2db677d58dcb50aea20d3bb191537df25b. Thanks Tim Graham for the review. Backport of 1a9cbf41a130def83a7e384955544d08be0fc148 from master
2018-08-02[2.1.x] Fixed #29627 -- Fixed QueryDict.urlencode() crash with non-string ↵Tim Graham
values. Regression in 7d96f0c49ab750799860e42716d7105e11de44de. Backport of d8e2be459f97f1773c7edf7d37de180139146176 from master
2018-08-02[2.1.x] Fixed #29499 -- Fixed race condition in QuerySet.update_or_create().Michael Sanders
A race condition happened when the object didn't already exist and another process/thread created the object before update_or_create() did and then attempted to update the object, also before update_or_create() saved the object. The update by the other process/thread could be lost. Backport of 271542dad1686c438f658aa6220982495db09797 from master
2018-08-01[2.1.x] Fixed typos in comments and docs.luz.paz
Backport of 97e637a87fb45c4de970cca6cb783d93473c9d15 from master
2018-08-01[2.1.x] Fixed CVE-2018-14574 -- Fixed open redirect possibility in ↵Andreas Hug
CommonMiddleware.
2018-07-31[2.1.x] Fixed #29617 -- Fixed Template crash if template_string is lazy.Dražen Odobašić
Regression in 3a148f958dddd97c1379081118c30fbede6b6bc4. Backport of 9f3b9ffd51c71d96728df9ee16f5a57c6f3b315d from master
2018-07-23[2.1.x] Refs #29514 -- Added test for get_default_timezone()/timezone.utc ↵Carlton Gibson
equality. Backport of f4ef71c689b7bf3b0237d12c634fe5557f646a79 from master
2018-07-19[2.1.x] Fixed #29578 -- Made numberformat.format() honor forced l10n usage.Claude Paroz
Thanks Sassan Haradji for the report. Backport of 0adfba968e28cfb4e4d681e658866debbbd68089 from master
2018-07-06[2.1.x] Refs #29451 -- Fixed test_isvalid_lookup on MySQL 8+.Tom
Backport of f98e1c01eafa724cb87772ae03b3fd1158e9fd50 from master
2018-07-02[2.1.x] Fixed #29449 -- Reverted "Fixed #28757 -- Allowed using contrib.auth ↵Tim Graham
forms without installing contrib.auth." This reverts commit 3333d935d2914cd80cf31f4803821ad5c0e2a51d due to a crash if USERNAME_FIELD isn't a CharField. Backport of f3fa86a89b3b85242f49b2b9acf58b5ea35acc1f from master
2018-06-27[2.1.x] Fixed #29520 -- Fixed test client crash when posting bytes.Tim Graham
Regression in b8a41a2872624a6d9e61308932dd81d001e31eb9. Backport of 9294110a57ce0a6d14506969c950090045c622c8 from master
2018-06-27[2.1.x] Refs #29253 -- Fixed method_decorator() crash if decorator sets a ↵Chris Jerdonek
new attribute. Regression in fdc936c9130cf4fb5d59869674b9a31cc79a7999. Backport of f434f5b84f7fcea9a76a551621ecce70786e2899 from master
2018-06-22[2.1.x] Fixed #29511 -- Added charset to JavaScriptCatalog's Content-Type ↵Tim Graham
header. Backport of 7cdeb23ae7ef2d125276840ff298dbb9683959f2 from master