1
0
mirror of https://github.com/django/django.git synced 2025-04-07 23:16:46 +00:00

9567 Commits

Author SHA1 Message Date
Tim Graham
53b9a6654b [2.1.x] Fixed #29682 -- Fixed admin change form crash if a view-only model's form has an extra field.
Backport of d311124be59df64278f3149d68e79ce45b8a6c64 from master
2018-08-20 11:15:16 -04:00
Jon Dufresne
cae84904c6 [2.1.x] Refs #29015 -- Added database name to PostgreSQL database name too long exception.
Backport of bf17f5e88466e3f571065345f5b2fea0d8af89fe from master
2018-08-17 12:44:17 -04:00
Jon Dufresne
9c93bf0903 [2.1.x] Fixed #29663 -- Made admin change view redirect to changelist with view permission.
Backport of 09ee3b6fe3c4d80bb445835f88148d6f48cde3ff from master
2018-08-17 11:21:17 -04:00
Marnanel Thurman
ef306338eb [2.1.x] Fixed #29662 -- Allowed test client to accept structured suffix JSON content types.
Backport of 7cc52250f06c2a4769badbab1d7ee01f8e3cb46a from master
2018-08-15 10:28:08 -04:00
Ramiro Morales
f72a7d8f44 [2.1.x] Fixed #29653 -- Fixed missing related_query_name reverse accessor if 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 12:43:27 -04:00
Clément Mangin
d7615674d9 [2.1.x] Fixed #29637 -- Fixed admin change form crash if the user doesn’t have the add permission to a TabularInline.
Regression in 825f0beda804e48e9197fcf3b0d909f9f548aa47.

Backport of 64e1a271f50d921a54388539b6ff7102a31c3d29 from master
2018-08-10 11:32:52 -04:00
Tim Graham
e3be4e94d1 [2.1.x] Fixed #29623 -- Fixed translation failure of DurationField's "overflow" error message.
Backport of 730173d1c5cf210d8e3bd951fa49f64b9bc561ca from master
2018-08-08 06:38:27 -04:00
Mariusz Felisiak
2bf766cedc
[2.1.x] Fixed #29643 -- Fixed crash when combining Q objects with __in lookups and lists.
Regression in fc6528b25ab1834be1a478b405bf8f7ec5cf860c.
Backport of 9fee229874367beafd532dad6d0f9ff9676ded0b from master
2018-08-08 08:52:55 +02:00
Mariusz Felisiak
c706091225
[2.1.x] Fixed #29613 -- Fixed --keepdb on PostgreSQL if the database exists and the user can't create databases.
Regression in e776dd2db677d58dcb50aea20d3bb191537df25b.

Thanks Tim Graham for the review.
Backport of 1a9cbf41a130def83a7e384955544d08be0fc148 from master
2018-08-03 10:33:52 +02:00
Tim Graham
0cfca0f2cc [2.1.x] Fixed #29627 -- Fixed QueryDict.urlencode() crash with non-string values.
Regression in 7d96f0c49ab750799860e42716d7105e11de44de.
Backport of d8e2be459f97f1773c7edf7d37de180139146176 from master
2018-08-02 21:56:43 -04:00
Michael Sanders
221ef69a9b [2.1.x] Fixed #29499 -- Fixed race condition in QuerySet.update_or_create().
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-02 17:17:12 -04:00
luz.paz
adfd261404 [2.1.x] Fixed typos in comments and docs.
Backport of 97e637a87fb45c4de970cca6cb783d93473c9d15 from master
2018-08-01 16:13:18 -04:00
Andreas Hug
c4e5ff7fdb [2.1.x] Fixed CVE-2018-14574 -- Fixed open redirect possibility in CommonMiddleware. 2018-08-01 09:35:09 -04:00
Dražen Odobašić
4dadf4eb7b [2.1.x] Fixed #29617 -- Fixed Template crash if template_string is lazy.
Regression in 3a148f958dddd97c1379081118c30fbede6b6bc4.
Backport of 9f3b9ffd51c71d96728df9ee16f5a57c6f3b315d from master
2018-07-31 09:57:28 -04:00
Carlton Gibson
278457988a [2.1.x] Refs #29514 -- Added test for get_default_timezone()/timezone.utc equality.
Backport of f4ef71c689b7bf3b0237d12c634fe5557f646a79 from master
2018-07-23 10:44:25 -04:00
Claude Paroz
1084bcc4b7 [2.1.x] Fixed #29578 -- Made numberformat.format() honor forced l10n usage.
Thanks Sassan Haradji for the report.
Backport of 0adfba968e28cfb4e4d681e658866debbbd68089 from master
2018-07-19 16:44:57 -04:00
Tom
c7ac2ee773 [2.1.x] Refs #29451 -- Fixed test_isvalid_lookup on MySQL 8+.
Backport of f98e1c01eafa724cb87772ae03b3fd1158e9fd50 from master
2018-07-06 09:05:55 -04:00
Tim Graham
78f502cd0b [2.1.x] Fixed #29449 -- Reverted "Fixed #28757 -- Allowed using contrib.auth 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-07-02 18:57:12 -04:00
Tim Graham
01b7fdfd67 [2.1.x] Fixed #29520 -- Fixed test client crash when posting bytes.
Regression in b8a41a2872624a6d9e61308932dd81d001e31eb9.

Backport of 9294110a57ce0a6d14506969c950090045c622c8 from master
2018-06-27 16:52:06 -04:00
Chris Jerdonek
da46599143 [2.1.x] Refs #29253 -- Fixed method_decorator() crash if decorator sets a new attribute.
Regression in fdc936c9130cf4fb5d59869674b9a31cc79a7999.

Backport of f434f5b84f7fcea9a76a551621ecce70786e2899 from master
2018-06-27 11:46:24 -04:00
Tim Graham
714612a638 [2.1.x] Fixed #29511 -- Added charset to JavaScriptCatalog's Content-Type header.
Backport of 7cdeb23ae7ef2d125276840ff298dbb9683959f2 from master
2018-06-22 09:32:33 +02:00
Carlton Gibson
dae75481fa [2.1.x] Refs #29451 -- Fixed invalid SQL on MySQL in queries tests.
Backport of c4f099de1d0d82c5e1f88768300896eae69bddbd from master
2018-06-20 10:39:15 -04:00
Nick Pope
16e691d568 [2.1.x] Fixed #29503 -- Made __in lookup keep order of values in query.
Regression in 86eccdc8b67728d84440a46e5bf62c78f2eddf6d.

Backport of b0fbfae09334554124e1dccb7559d10f36e2f84c from master
2018-06-20 09:42:47 -04:00
Carlton Gibson
67fc680c43 [2.1.x] Fixed #29502 -- Allowed users with the view permission to use autocomplete_fields.
Backport of 5b733171813f8ddc7af84abe79f2646204b9c6ca from master
2018-06-18 15:37:10 -04:00
Carlton Gibson
306f1f8ea3 [2.1.x] Fixed #29419 -- Allowed permissioning of admin actions.
Backport of 958c7b301ead79974db8edd5b9c6588a10a28ae7 from master
2018-06-18 15:37:05 -04:00
Mariusz Felisiak
d2ca28db54
[2.1.x] Fixed #29496 -- Fixed crash on Oracle when converting a non-unique field to primary key.
Thanks Tim Graham for the review.
Backport of 6dd4edb1b4f5441c5f543e29395039839c50d10b from master
2018-06-17 08:54:01 +02:00
oliver
d03b130cbc [2.1.x] Fixed #29469 -- Added a helpful makemigrations error if app_label contains dots.
Backport of 78972af367a1da54aa7e539e4b1ffa2b56571e77 from master
2018-06-16 15:19:08 -04:00
Paulo
8cbfaf29c0 [2.1.x] Fixed #29487 -- Accounted for object level permissions when calculating change view's read-only fields.
Thanks Matthew Frazier for the report and fix.

Backport of 553617e61324dd5d9b34c47ceb2b6f20888daf20 from master
2018-06-15 22:11:32 -04:00
Tim Graham
7f173b6b4f [2.1.x] Fixed #29498 -- Fixed a missing pyc test file in source distribution.
Backport of 63f90f55f30d599d601d729060cdb0ebd2abdeb8 from master
2018-06-15 14:49:18 -04:00
Jeff
2b7b199390 [2.1.x] Fixed #29000 -- Fixed RenameModel's renaming of a M2M column when run after RenameField.
Regression in 45ded053b1f4320284aa5dac63052f6d1baefea9.

Backport of fcc4e251dbc917118f73d7187ee2f4cbf3883f36 from master
2018-06-15 12:07:40 -04:00
Henk Kahlfuß
0eca99dade [2.1.x] Fixed #23869 -- Made ModelAdmin.get_deleted_objects() use has_delete_permission() for permissions checking.
Backport of 3eb9127678e292ef2645b632199f3e9c876ad999 from master
2018-06-15 10:47:05 -04:00
Tim Graham
531a152c65 [2.1.x] Refs #29428 -- Fixed admin check crash when using a query expression in ModelAdmin.ordering.
Backport of ec2c9c353113bb1db6e32ed3f0b6c28bc06ca2eb from master
2018-06-15 10:00:38 -04:00
Tim Graham
a041161bde [2.1.x] Fixed #29428 -- Fixed admin changelist crash when using a query expression without asc()/desc() in the ordering.
Backport of 0d8e3e608ee9aab5076d497664aa97e0a29e523e from master
2018-06-15 10:00:29 -04:00
Carlton Gibson
aea0e2b9ca [2.1.x] Refs #29419, #8936 -- Removed change permission requirement for admin actions.
Partially reverted 825f0beda804e48e9197fcf3b0d909f9f548aa47.

Backport of b30f9b131c9489b9d9f21c311ecb46d0aea91381 from master
2018-06-13 14:53:25 -04:00
Bartosz Grabski
c7d59825d7 [2.1.x] Fixed #29452 -- Fixed makemessages setting charset of .pot files.
Backport of 2bc014750adb093131f77e4c20bc17ba64b75cac from master
2018-06-12 08:29:22 -04:00
Arthur Silva
91a02dce97 [2.1.x] Fixed #29464 -- Silenced post-process messages in collectstatic's default verbosity.
Backport of bc1435551c0cfaf4a22aff8216990b909005dba9 from master
2018-06-11 20:49:27 -04:00
Claude Paroz
69e2d173e5 [2.1.x] Refs #29483 -- Relaxed WGS 84 check regex
With GDAL 2.3, the exact string changed again.
Backport of 86988dd890671aa8935f86eab2bbe22ad917db70 from master.
2018-06-09 09:20:52 +02:00
Claude Paroz
33b5313d7c [2.1.x] Fixed #29301 -- Added custom help formatter to BaseCommand class
This partially reverts c3055242c81812278ebdc93dd109f30d2cbd1610.
Thanks Adam Johnson and Carlton Gibson for the reviews.
Backport of ce3351b9508896afdf87d11bd64fd6b5ad928228 from master.
2018-06-06 19:17:57 +02:00
Tim Graham
60aa235f43 [2.1.x] Fixed MySQL QuerySet.explain() test when running tests in reverse.
Backport of 13fe5a87f9554a6371f1d0914887bffcdf978a8a from master
2018-06-06 11:31:39 -04:00
Tim Graham
ae3ddce4e8 [2.1.x] Relaxed a GDAL raster test.
The exact metadata depends on the GDAL version.

Backport of 3dffcb5579a5a64f1869b9b46a379d519079d805 from master
2018-06-04 10:02:18 -04:00
Tim Graham
cc8ef63211 [2.1.x] Fixed #29461 -- Fixed ogrinspect test_time_field failure on SpatiaLite.
Backport of 666be7b9942611d5c0f5e485c448f219cd5a1ad5 from master
2018-06-02 07:33:09 -04:00
Tim Graham
93304b2269 [2.1.x] Fixed #29462 -- Fixed ogrinspect test failures with GDAL 2.2.
Backport of 55f4eee75d41499995bfdb611ac89e80c87404eb from master
2018-06-01 22:32:06 -04:00
Adam Donaghy
10a6d444af [2.1.x] Fixed #28462 -- Decreased memory usage with ModelAdmin.list_editable.
Regression in 917cc288a38f3c114a5440f0749b7e5e1086eb36.

Backport of b18650a2634890aa758abae2f33875daa13a9ba3 from master
2018-06-01 11:00:13 -04:00
Mariusz Felisiak
31b9cf97b9 [2.1.x] Refs #29416 -- Fixed GeoExpressionsTests.test_multiple_annotation() on MySQL 5.7+.
Failure introduced in b6e48f514ebe4e31b76e1750e043d4f296e645dc.

Backport of d0ad03cded64fc307b15668c81d0c65fd8486eff from master
2018-05-31 10:38:57 -04:00
Tim Graham
4ca64f2bd5 [2.1.x] Refs #28748 -- Reallowed lazy model field choices.
Regression in 3aa9ab39cce6b2a27d6334ad0148c8f37b6f5986.

Backport of c03e41712b2274f524d32bc2aef455ed82c9e3b4 from master
2018-05-29 21:43:56 -04:00
Paulo
25d4d8465b [2.1.x] Fixed #29230 -- Fixed nested prefetches that clash with descriptors.
Backport of 6104875a2cc797bbd1254aa61f22a9b03d652128 from master
2018-05-27 22:14:59 -04:00
Mariusz Felisiak
b6e48f514e [2.1.x] Fixed #29416 -- Removed unnecesary subquery from GROUP BY clause on MySQL when using a RawSQL annotation.
Regression in 1d070d027c218285b66c0bde8079034b33a87f11.
Backport of 4ab1f559e8d1264bcb20bb497988973194f5d8f2 from master
2018-05-27 18:25:42 -04:00
Ramiro Morales
c56d94c02a [2.1.x] Fixed #29417 -- Corrected two admin page titles for view-only users.
Backport of f40e71a957aa00b4572c19b269179cded6c8c500 from master
2018-05-27 16:38:26 -04:00
Daniel Hepper
13cb9d05a0 [2.1.x] Removed obsolete BaseHandler attributes.
Unused since d334f46b7a080fd3eb720141c19b37b10704a352.

Backport of 4e016d137236d36d47462f63e8f7988f1ad6c12e from master
2018-05-27 13:45:22 -04:00
Tim Graham
483f5d6c4f [2.1.x] Reverted "Fixed #29324 -- Made Settings raise ImproperlyConfigured if SECRET_KEY is accessed and not set."
This reverts commit b3cffde5559c4fa97625512d7ec41a674be26076 due to
a regression and performance concerns.

Backport of 5cc81cd9eb69f5f7a711412c02039b435c393135 from master
2018-05-26 21:07:19 -04:00