Aymeric Augustin
87e9cad4a4
[1.8.x] Fixed #24318 -- Set the transaction isolation level with psycopg >= 2.4.2.
...
Backport of 76356d96
from master
2015-02-14 18:52:28 +01:00
Loic Bistuer
20b621eb3c
[1.8.x] Fixed #24289 -- Reversed usage of Field.many_to_one and one_to_many.
...
Thanks Carl Meyer and Tim Graham for the reviews and to all involved
in the discussion.
Backport of 18c0aaa912
from master
2015-02-14 02:42:06 +07:00
Markus Holtermann
bd80fa6b0f
[1.8.x] Fixed #24184 -- Prevented automatic soft-apply of migrations
...
Previously Django only checked for the table name in CreateModel
operations in initial migrations and faked the migration automatically.
This led to various errors and unexpected behavior. The newly introduced
--fake-initial flag to the migrate command must be passed to get the
same behavior again. With this change Django will bail out in with a
"duplicate relation / table" error instead.
Thanks Carl Meyer and Tim Graham for the documentation update, report
and review.
Backport of f287bec583
from master
2015-02-13 15:21:10 +01:00
Josh Smeaton
1784c326b1
[1.8.x] Fixed #24319 -- Added validation for UUID model field
...
Backport of de0241eb98
from master
2015-02-13 10:01:06 +11:00
Josh Smeaton
a6ea62aeaf
[1.8.x] Refs #14030 -- Improved expression support for python values
...
Backport of e2d6e14662
from master
2015-02-12 08:53:03 +11:00
Daniel Pyrathon
fdcc9c47d5
[1.8.x] Fixed #24146 -- Allowed model._meta.get_field() to be used after apps.models_ready
...
Backport of 19188826b4
from master
2015-02-10 19:55:42 -05:00
Loic Bistuer
00f76b018f
[1.8.x] Fixed isort import that's inconsistent between platforms.
...
Backport of c8e24bbc9b
from master
2015-02-10 18:53:23 -05:00
Josh Smeaton
3518d51697
[1.8.x] Fixed #24200 -- Made introspection bypass statement cache
...
Backport of 1fbe8a2de3
from master
2015-02-10 23:42:16 +02:00
Tim Graham
a8b70d251d
[1.8.x] Sorted imports with isort; refs #23860 .
...
Backport of 0ed7d15563
from master
2015-02-09 14:24:06 -05:00
Tim Graham
9744529c12
[1.8.x] Fixed #24302 -- Added DurationField.formfield()
...
Backport of 2d7c27d387
from master
2015-02-09 10:21:15 -05:00
jMyles
ac576e9f45
[1.8.x] Fixed #24287 -- Added friendly error if a model is in a models.py outside an installed app.
2015-02-09 09:38:03 -05:00
Tim Graham
6e50fc9246
[1.8.x] Removed unnecessary parentheses in model check messages.
...
Backport of e144e0e237
from master
2015-02-09 08:57:02 -05:00
Aron Podrigal
eb9fbc0b1d
[1.8.x] Fixed #24249 -- Improved field shadowing validation in model multi-inheritance.
...
Backport of 4d73303ee9
from master
2015-02-09 08:43:40 -05:00
Markus Holtermann
edbf6de753
[1.8.x] Revert "Fixed #24075 -- Prevented running post_migrate signals when unapplying initial migrations of contenttypes and auth"
...
This reverts commit 737d24923a
.
Backport of 2832a9b028
from master
2015-02-07 20:35:20 +01:00
Collin Anderson
fc8e1e0c10
[1.8.x] Fixed E265 comment style
...
Backport of db77915c9f
from master
2015-02-06 09:35:08 -05:00
Tim Graham
fc1e9107d7
[1.8.x] Added UUIDField.deconstruct()
...
Backport of 0f54cf28c0
from master
2015-02-05 19:15:37 -05:00
Aron Podrigal
fc49e73648
[1.8.x] Fixed #15321 -- Honored ancestors unique checks.
...
Thanks to Tim for the review.
Backport of 79f27f2b61
from master
2015-02-03 18:58:48 -05:00
Simon Charette
cbcf92e95f
[1.8.x] Fixed #24266 -- Changed get_parent_list to return a list ordered by MRO.
...
Thanks to Aron Podrigal for the initial patch and Tim for the review.
Backport of 65e005f8cd
from master
2015-02-03 16:41:51 -05:00
Tim Graham
92d5bedc56
[1.8.x] Reverted "Fixed #24146 -- Fixed a missing fields regression in admin checks."
...
This reverts commit e8171daf0c
.
A new solution is forthcoming.
Backport of 0e489c19f1
from master
2015-02-03 15:24:24 -05:00
Anssi Kääriäinen
43b0131fb5
[1.8.x] Fixed #23617 -- Added get_pk_value_on_save()
...
The method is mainly intended for use with UUIDField. For UUIDField we
want to call the field's default even when primary key value is
explicitly set to None to match the behavior of AutoField.
Thanks to Marc Tamlyn and Tim Graham for review.
Backport of 8adc59038c
from master
2015-02-03 09:25:55 -05:00
Tim Graham
3cd8f51f21
[1.8.x] Removed query.alias_diff()
...
This function is unused since 6fe2b001db
Backport of f79ce63fdb
from master
2015-02-01 21:38:34 -05:00
Tim Graham
7580876fbd
[1.8.x] Removed Query.raise_field_error()
...
This method was inadvertently reintroduced in
f59fd15c49
Backport of 99ca7c2bd3
from master
2015-02-01 20:26:43 -05:00
Tim Graham
c9e538b174
[1.8.x] Removed threading fallback imports.
...
Django imports threading in many other places without fallback.
Backport of 18f3e79b13
from master
2015-02-01 18:45:01 -05:00
Tim Graham
0fc2f94699
[1.8.x] Removed PostgreSQL DatabaseWrapper._set_isolation_level().
...
This method is unused since 8717b0668c
.
Backport of 64a899dc81
from master
2015-01-31 11:06:03 -05:00
Claude Paroz
c77dd64402
[1.8.x] Fixed #14483 -- Allowed using subqueries with GIS lookups
...
Backport of a0b5f15ea5
from master.
2015-01-30 20:29:05 +01:00
Tim Graham
7060ef7158
[1.8.x] Reverted "Fixed #6785 -- Made QuerySet.get() fetch a limited number of rows."
...
This reverts commit da79ccca1d
.
This optimized the unsuccessful case at the expense of the successful one.
Backport of 293fd5da5b
from master
2015-01-30 12:52:39 -05:00
Tim Graham
df68751134
[1.8.x] Fixed #24164 -- Fixed Oracle GIS limited aggregation test failure.
...
Backport of 29c0073335
from master
2015-01-30 06:34:36 -05:00
Simon Charette
a301061f88
[1.8.x] Fixed #23940 -- Allowed model fields to be named `exact`.
...
An explicit `__exact` lookup in the related managers filters
was interpreted as a reference to a foreign `exact` field.
Thanks to Trac alias zhiyajun11 for the report, Josh for the investigation,
Loïc for the test name and Tim for the review.
Backport of eb4cdfbdd6
from master
2015-01-29 14:42:28 -05:00
Tim Graham
d0c343372f
[1.8.x] Removed ForeignObjectRel.get_lookup_constraint() [unused].
...
Backport of f609731118
from master
2015-01-29 14:12:35 -05:00
Josh Smeaton
f858b51ee3
[1.8.x] Refs #14030 -- Renamed CombinableMixin to Combinable
...
Removed unused method and updated docstrings.
Backport of 14d0bd67d4
from master
2015-01-28 11:04:12 +11:00
Josh Smeaton
6c68e40e6e
[1.8.x] Refs #14030 -- Added repr methods to all expressions
...
Backport of 7171bf755b
from master
2015-01-28 11:03:39 +11:00
Josh Smeaton
e56810e839
[1.8.x] Fixed #24154 -- Backends can now check support for expressions
...
Backport of 8196e4bdf4
from master
2015-01-27 14:47:38 +11:00
Andriy Sokolovskiy
11a5e45b96
[1.8.x] Fixed #24104 -- Fixed check to look on field.many_to_many instead of class instance
...
Backport of 38c17871bb
from master
2015-01-22 18:53:47 +01:00
Loic Bistuer
0580133971
[1.8.x] Fixed small inconsistency when handling aggregate's default_alias.
...
Refs #14030 .
Backport of d450af8a26
from master
2015-01-22 08:02:07 +07:00
Adam Taylor
45aaced91e
[1.8.x] Fixed typos in code comments.
...
Backport of 039465a6a7
from master
2015-01-20 12:18:29 -05:00
Tim Graham
cb90d489da
[1.8.x] Fixed a query failure on Python 3.5; refs #23763 .
...
The failure was introduced in Django by
c7fd9b242d
and the change in
Python 3.5 is https://hg.python.org/cpython/rev/a3c345ba3563 .
Backport of be1357e709
from master
2015-01-20 08:15:39 -05:00
Josh Smeaton
504cd5d3be
[1.8.x] Fixed #24183 -- Fixed wrong comparisons in Substr
...
Backport of 61c102d010
from master
2015-01-20 12:11:27 +11:00
Markus Holtermann
e55cb91bd4
[1.8.x] Fixed #24163 -- Removed unique constraint after index on MySQL
...
Thanks Łukasz Harasimowicz for the report.
Backport of 5792e6a88c
from master
2015-01-19 16:55:25 +01:00
Josh Smeaton
0c910823c1
[1.8.x] Fixed #24174 -- Fixed extra order by descending
...
Backport of 69c6a6868f
from master
2015-01-19 13:18:09 +11:00
Marc Tamlyn
39d95fb6ad
Fixed #24092 -- Widened base field support for ArrayField.
...
Several issues resolved here, following from a report that a base_field
of GenericIpAddressField was failing.
We were using get_prep_value instead of get_db_prep_value in ArrayField
which was bypassing any extra modifications to the value being made in
the base field's get_db_prep_value. Changing this broke datetime
support, so the postgres backend has gained the relevant operation
methods to send dates/times/datetimes directly to the db backend instead
of casting them to strings. Similarly, a new database feature has been
added allowing the uuid to be passed directly to the backend, as we do
with timedeltas.
On the other side, psycopg2 expects an Inet() instance for IP address
fields, so we add a value_to_db_ipaddress method to wrap the strings on
postgres. We also have to manually add a database adapter to psycopg2,
as we do not wish to use the built in adapter which would turn
everything into Inet() instances.
Thanks to smclenithan for the report.
2015-01-16 16:15:16 -05:00
Collin Anderson
e8171daf0c
Fixed #24146 -- Fixed a missing fields regression in admin checks.
...
This allows using get_field() early in the app loading process.
Thanks to PirosB3 and Tim Graham.
2015-01-16 14:47:09 -05:00
Tim Graham
28db4af80a
Fixed #24135 -- Made RenameModel rename many-to-many tables.
...
Thanks Simon and Markus for reviews.
2015-01-15 20:34:33 -05:00
Simon Charette
47bdad4e6b
Replaced inner functions by class methods.
...
refs #24031
Thanks to Tim Graham and Michał Modzelewski for the review.
2015-01-15 13:03:34 -05:00
Claude Paroz
67bcae1e58
Moved check_aggregate_support to BaseSpatialOperations
2015-01-14 22:03:41 +01:00
Collin Anderson
2d5da57f48
Fixed incorrect error message in Options.get_fields()
2015-01-14 14:51:05 -05:00
Tim Graham
28308078f3
Fixed #22603 -- Reorganized classes in django.db.backends.
2015-01-14 14:16:20 -05:00
Markus Holtermann
737d24923a
Fixed #24075 -- Prevented running post_migrate signals when unapplying initial migrations of contenttypes and auth
...
Thanks Florian Apolloner for the report and Claude Paroz and Tim Graham for the review and help on the patch.
2015-01-14 19:59:39 +01:00
Markus Holtermann
88786afbff
Fixed #24147 -- Prevented managers leaking model during migrations
...
Thanks Tim Graham for the review.
2015-01-14 16:09:33 +01:00
Michał Modzelewski
65246de7b1
Fixed #24031 -- Added CASE expressions to the ORM.
2015-01-12 18:15:34 -05:00
Shai Berger
aa8ee6a573
Fixed test failures in Oracle introspection
...
Refs #17785
2015-01-13 01:00:09 +02:00