Marti Raudsepp
70f9995296
[1.8.x] Fixed CVE-2016-9013 -- Generated a random database user password when running tests on Oracle.
...
This is a security fix.
2016-10-25 14:24:11 -04:00
Jon Dufresne
8edfdddbc8
[1.8.x] Fixed #26889 -- Fixed missing PostgreSQL index in SchemaEditor.add_field().
...
Backport of 2e4cfcd2b9
from master
2016-07-13 22:15:43 -04:00
Joshua Phillips
052e1f17ca
[1.8.x] Fixed #26557 -- Converted empty strings to None when saving GenericIPAddressField.
...
Backport of 4681d65048
from master
2016-04-29 10:17:00 -04:00
Lukasz Wiecek
0a411b2224
[1.8.x] Fixed #26498 -- Fixed TimeField microseconds round-tripping on MySQL and SQLite.
...
Thanks adamchainz for the report and review.
Backport of d3c87a2425
from master
2016-04-18 09:49:31 -04:00
Tim Graham
100f28ed28
[1.8.x] Sorted single letter imports per the latest version of isort.
...
Backport of 1c8c0837c6
from master
2016-03-28 11:59:36 -04:00
Noenglish Professorbut
1a1a8235df
[1.8.x] Fixed a few docstring typos.
...
Backport of f8d20da047
from master
2016-03-12 08:50:50 -05:00
Tim Graham
c7764ca3a0
[1.8.x] Fixed #26324 -- Fixed DurationField with fractional seconds on SQLite.
...
Backport of 4f0cd0fd16
from master
2016-03-10 19:16:31 -05:00
Josh Soref
751e5fcaf7
[1.8.x] Fixed many spelling mistakes in code, comments, and docs.
...
Partial backport of 93452a70e8
from master
2016-02-23 10:27:15 -05:00
Tim Graham
33525bb120
[1.8.x] Fixed #26233 -- Fixed invalid reSt in models.Q docstring.
...
Backport of 70d3f81ca4
from master
2016-02-18 08:46:53 -05:00
Simon Charette
edff550392
[1.8.x] Fixed #26162 -- Checked query name clashes of hidden relationships.
...
Although reverse accessor clashes should be skipped query name can't be hidden.
Thanks to Ian Foote and Tim Graham for the review.
Backport of a325fb1f9b
from master
2016-02-08 10:42:31 -05:00
Tim Graham
2f0de9b0a1
[1.8.x] Fixed #26177 -- Fixed a PostgreSQL crash with TIME_ZONE=None and USE_TZ=False.
...
Backport of 97eb3356b2
from master
2016-02-08 07:45:10 -05:00
Alberto Avila
5b3c66d8b6
[1.8.x] Fixed #26071 -- Fixed crash with __in lookup in a Case expression.
...
Partial backport of afe0bb7b13
from master.
2016-01-13 08:38:07 -05:00
Tim Graham
f8c3d38c2d
[1.8.x] Fixed #26034 -- Fixed incorrect index handling on PostgreSQL on Char/TextField with unique=True and db_index=True.
...
Thanks Simon Charette for review.
Backport of 56aaae58a7
from master
2016-01-08 14:47:05 -05:00
varunnaganathan
f6b4893a9f
[1.8.x] Fixed #25316 -- Fixed a crash with order_by() and values() after annotate().
...
Backport of 3eba9638ee
from master
2016-01-02 08:20:07 -05:00
Chris Lamb
91d46d2fb8
[1.8.x] Discouraged use of /tmp with predictable names.
...
The use of predictable filenames in /tmp often leads to symlink attacks
so remove the most obvious use of them in the docs.
Backport of 77b8d8cb6d
from master
2015-12-24 09:57:02 -05:00
Simon Charette
4b02b433b7
[1.8.x] Fixed #25852 -- Made sure AlterModelManager forces a reload of its model state.
...
Thanks to Geoffrey Sechter and the Django NYC group for the report and Markus
for the review.
Backport of c4e372aaf4
from master
2015-12-15 14:55:05 -05:00
Federico Frenguelli
905e94a07e
[1.8.x] Fixed #25412 -- Fixed missing PostgreSQL index on Char/TextField when using AlterField.
...
Thanks to Emanuele Palazzetti for the help.
Backport of 3a36c80795
from master
2015-12-10 16:29:00 -05:00
Amos Onn
0772bffd4a
[1.8.x] Fixed #25896 -- Fixed state bug in SeparateDatabaseAndState.database_backwards().
...
Backport of 542b7f6c50
from master
2015-12-09 11:08:17 -05:00
Sergey Fedoseev
e73406d165
[1.8.x] Refs #25846 -- Added stacklevel to SubfieldBase warning.
...
Backport of 64200c14e0
from stable/1.9.x
2015-12-02 19:33:01 -05:00
George Marshall
581b9e5047
[1.8.x] Fixed #25767 -- Fixed data truncation possibility with Positive(Small)IntegerField on MySQL.
...
Backport of 710e11d076
from master
2015-11-24 11:10:23 -05:00
Tim Graham
6d9f061b07
[1.8.x] Fixed #25786 -- Fixed set_FOO_order() crash with order_with_respect_to referencing OneToOneField pk.
...
Partial backport of 7bec480fe2
from master
2015-11-23 11:05:18 -05:00
Simon Charette
7c3ef19978
[1.8.x] 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.
2015-11-22 23:07:30 -05:00
Tim Graham
2179e5a2bc
[1.8.x] Fixed #25715 -- Fixed Model.refresh_from_db() with ForeignKey w/on_delete=SET_NULL.
...
Backport of 54e2e688e1
from master
2015-11-21 11:41:06 -05:00
Simon Charette
a3baee2f62
[1.8.x] Refs #25693 -- Avoided redundant calls to get_fields() in `to_attr` validation.
...
Backport of 4a9c32f5ee
from master
2015-11-11 12:30:32 -05:00
Ian Foote
5fc9a1b8bd
[1.8.x] Fixed #25693 -- Prevented data loss with Prefetch and ManyToManyField.
...
Thanks to Jamie Matthews for finding and explaining the bug.
Backport of 4608573788
from master
2015-11-10 12:12:52 -05:00
David Filipovic
8c8a6d8a3f
[1.8.x] Fixed #25618 -- Restored migration support for non-upgraded apps.
...
A non-upgraded app is one that retains South migrations in the
`migrations` module and doesn't introduce Django migrations.
2015-11-10 10:34:25 -05:00
Josep Cugat
a42c5376e7
[1.8.x] Fixed #25686 -- Fixed crash on routers without an allow_migrate() method.
...
Thanks Simon Charette for review.
2015-11-09 10:50:02 -05:00
Tim Graham
65bff161ff
[1.8.x] Fixed #25618 -- Added a helpful error message when Django & south migrations exist in the same directory.
2015-10-28 09:59:32 -04:00
Tim Graham
6b631b5c0b
[1.8.x] Refs #24979 -- Used inspect.getargspec() on Python 3.2.
...
inspect.signature() was added in Python 3.3.
2015-10-26 12:25:34 -04:00
Tim Graham
e2ea30c440
[1.8.x] Fixed #24979 -- Removed usage of inspect.getargspec().
...
Backport of 3872a33132
from master
2015-10-25 06:02:21 -04:00
Simon Charette
71962629c0
[1.8.x] 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.
Backport of 3db3ab71e9
from master
2015-10-19 20:13:47 -04:00
Josh Smeaton
61ea371822
Refs #25517 -- Fixed backport inconsistencies.
2015-10-19 12:06:11 +11:00
Josh Smeaton
42e029f6c4
[1.8.x] Fixed #25517 -- Made Concat function idempotent on SQLite.
...
Backport of 6c95b134e9
from master
2015-10-17 15:58:17 -04:00
Antoine Catton
ee6785ebea
[1.8.x] Fixed #25506 -- Allowed filtering over a RawSQL annotation.
...
Co-Authored-By: Gavin Wahl <gwahl@fusionbox.com>
Backport of b971c1cd78
from master
2015-10-14 12:21:36 -07:00
Andriy Sokolovskiy
eb85e6672a
[1.8.x] Fixed #24156 -- Fixed inherited related name of ManyToManyField.
...
Fixed situation when parent abstract model declares related_name='+'
and child models had an invalid queryset.
Backport of f7b2978158
from master
2015-10-13 04:17:50 -07:00
Mariusz Felisiak
4ec96b776b
[1.8.x] Fixed #25503 -- Fixed system check crash on ForeignKey to abstract model.
...
Backport of 914167abf1
from master
2015-10-06 19:26:00 -04:00
Riccardo Magliocchetti
e2db171e15
[1.8.x] Refs #12118 -- Allowed "mode=memory" in SQLite test database names.
...
Backport of 3543fec3b7
from master
2015-10-06 12:33:24 -04:00
Marco Fucci
0e2d3b9304
[1.8.x] Fixed #24505 -- Fixed clash with hidden m2m fields.
...
Added support for multiple m2m fields with the same 'to' model
and with related_name set to '+'.
Backport of 4ee08958f1
from master
2015-09-30 18:38:49 -04:00
Mariusz Felisiak
cb2de5e2e9
[1.8.x] Fixed #25421 -- Fixed test --keepdb option on Oracle.
...
Backport of a3a6def867
from master
2015-09-26 19:52:09 -04:00
Benjamin Wohlwend
67896c8561
[1.8.x] Fixed #25453 -- Reworded makemigration's ask_not_null_alteration suggestion.
...
Backport of de31423130
from master
2015-09-23 13:41:01 -04:00
Aymeric Augustin
425c5e40ea
[1.8.x] 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).
Backport of 91e9f1c
from master
2015-09-21 22:31:13 +02:00
Aymeric Augustin
1abd177696
[1.8.x] 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.
Backport of c3904de
from master
2015-09-19 20:28:22 +02:00
Hynek Cernoch
eb0bbb8f3a
[1.8.x] Refs #17785 -- Made docstring for sqlite3's get_relations() consistent with other backends.
...
Backport of 4b9d063da0
from master
2015-09-18 09:33:23 -04:00
Aric Coady
7d471fe662
[1.8.x] Refs #20625 -- Fixed custom queryset chaining with values() and values_list().
2015-09-17 19:20:09 -04:00
Adam Chainz
3c2c74f58f
[1.8.x] Fixed #25377 -- Changed Count queries to execute COUNT(*) instead of COUNT('*').
...
Backport of 3fe3887a2e
from master
2015-09-14 14:07:32 -04:00
Ville Skyttä
69017bade0
[1.8.x] Fixed #25393 -- Fixed MySQL crash when adding text/blob field with unhashable default.
...
Backport of 4d933ad418
from master
2015-09-14 12:28:04 -04:00
Markus Holtermann
3cc5cc7958
[1.8.x] Fixed #25384 -- Ordered imports in newly created migration files
2015-09-12 13:23:38 +10:00
Aymeric Augustin
ce3dd17c2e
[1.8.x] Updated references to the TEST_* database settings.
...
They were removed in Django 1.9.
I could leave the reference to TEST_DEPENDENCIES in the 1.2.4 release
notes because the link points to the right location and the name was
accurate at the time.
Backport of 6d1110f
from master
2015-09-05 20:31:22 +02:00
Tim Graham
62347208bb
[1.8.x] Fixed #24525 -- Fixed AssertionError in some complex queries.
...
Thanks Anssi Kääriäinen for providing the solution.
Backport of 2dc9ec5616
from master
2015-09-05 08:19:38 -04:00
Kai Richard Koenig
181528726e
[1.8.x] Fixed #25040 -- Fixed migrations state crash with GenericForeignKey
...
Backport of 60f795c060
from master
2015-08-22 08:50:19 -04:00