Anssi Kääriäinen
155a127afb
[1.8.x] Fixed #24381 -- removed ForeignObjectRel opts and to_opts
...
These cached properies were causing problems with pickling, and in
addition they were confusingly defined: field.rel.model._meta was
not the same as field.rel.opts.
Instead users should use field.rel.related_model._meta inplace of
field.rel.opts, and field.rel.to._meta in place of field.rel.to_opts.
Backport of f95122e541
from master
2015-02-23 07:26:10 -05:00
foresmac
3207fcd0a0
[1.8.x] Fixed #24341 -- Added specific error messages to RangeField subclasses
...
Backport of 1d1d5d1c31
from master
2015-02-20 16:50:41 -05:00
Loic Bistuer
3a6c37fce4
[1.8.x] Fixed #24351 , #24346 -- Changed the signature of allow_migrate().
...
The new signature enables better support for routing RunPython and
RunSQL operations, especially w.r.t. reusable and third-party apps.
This commit also takes advantage of the deprecation cycle for the old
signature to remove the backward incompatibility introduced in #22583 ;
RunPython and RunSQL won't call allow_migrate() when when the router
has the old signature.
Thanks Aymeric Augustin and Tim Graham for helping shape up the patch.
Refs 22583.
Conflicts:
django/db/utils.py
Backport of bed504d70b
from master
2015-02-20 21:55:50 +07:00
Marc Tamlyn
b6ef67d752
[1.8.x] Fixed #24373 -- Added run_validators to ArrayField.
...
Thanks to DavidMuller for the report.
Backport of c490e410af
from master
2015-02-20 11:53:17 +00:00
Marc Tamlyn
3886338c1d
[1.8.x] Update converters to take a consistent set of parameters.
...
As suggested by Anssi. This has the slightly strange side effect of
passing the expression to Expression.convert_value has the expression
passed back to it, but it allows more complex patterns of expressions.
Backport of 32d4db66b9
from master
2015-02-20 11:47:48 +00:00
Tim Graham
ad2c6a756b
[1.8.x] Moved contrib.contenttypes tests out of contrib.
...
Backport of 664c038f2c
from master
2015-02-16 18:06:13 -05:00
Tim Graham
77e3f7dd58
[1.8.x] Fixed #24299 -- Added an auth migration to ensure contenttypes is migrated.
...
Without this migration, the auth signal handlers will fail if migrating
only auth.
Backport of 4538cbf17d
from master
2015-02-16 14:55:24 -05:00
Sergey Fedoseev
870d900cdc
[1.8.x] Refs #24299 -- Made contenttypes migrations signal handler more robust.
...
Backport of d392c1e150
from master
2015-02-16 13:44:04 -05:00
Markus Holtermann
681efedce4
[1.8.x] Explicitly checked for LookupError in contenttypes migration
...
Backport of 4dd1f4c5eb
from master
2015-02-16 17:14:33 +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
Tim Graham
2347f3267f
[1.8.x] Fixed #24315 -- Fixed auth.views.password_reset_confirm() with a UUID user.
...
Backport of 002425fe39
from master
2015-02-13 09:57:44 -05:00
Tim Graham
8fc4840289
[1.8.x] Fixed #24334 -- Allowed admin password reset to work with non-digit custom user model primary key.
...
Thanks Loic for help and Simon for review.
Backport of fdf20093e0
from master
2015-02-13 09:50:55 -05:00
Tim Graham
4c948c7c9d
[1.8.x] Fixed #24332 -- Fixed contrib.sites create_default_site() when 'default' DATABASES is empty.
...
Backport of e8cf4f8abe
from master
2015-02-13 07:02:37 -05:00
Tim Graham
03f4e2d909
[1.8.x] Fixed #24333 -- Fixed admin history view crash with non-integer slug.
...
Backport of d64baaef3b
from master
2015-02-12 14:20:17 -05:00
Tim Graham
596564e808
[1.8.x] Fixed #24161 -- Stored the user primary key as a serialized value in the session.
...
This allows using a UUIDField primary key along with the JSON session
serializer.
Thanks to Trac alias jamesbeith for the report and Simon Charette
for the initial patch.
Backport of 0f7f5bc9e7
from master
2015-02-12 07:40:14 -05:00
Collin Anderson
343c087533
[1.8.x] Refs #14497 -- Handled empty readonly admin FileFields
...
Backport of 07cfe1bd82
from master
2015-02-11 13:01:25 -05:00
Tim Graham
e06971340d
[1.8.x] Moved contrib.webdesign tests out of contrib.
...
Backport of 8ec306a3a9
from master
2015-02-11 12:35:32 -05:00
Tim Graham
69c89aeccf
[1.8.x] Moved contrib.gis tests out of contrib.
...
Backport of ad0be620ae
from master
2015-02-11 12:05:29 -05:00
Tim Graham
2482c9dd24
[1.8.x] Moved non-documented auth test models to the new test location.
...
Backport of 5ab327a389
from master
2015-02-11 12:03:03 -05:00
Tim Graham
e55d888b66
[1.8.x] Moved contrib.auth tests out of contrib.
...
Backport of 2d7aca3da0
from master
2015-02-11 12:02:35 -05:00
Tim Graham
44df17d53c
[1.8.x] Moved contrib.humanize tests out of contrib.
...
Backport of 8192a164de
from master
2015-02-11 11:55:53 -05:00
Tim Graham
c0f0f93b5d
[1.8.x] Moved contrib.redirects tests out of contrib.
...
Backport of 00da46091a
from master
2015-02-11 11:55:40 -05:00
Tim Graham
bbe7964185
[1.8.x] Moved contrib.messages tests out of contrib.
...
Backport of b3cd9e0d07
from master
2015-02-11 11:55:05 -05:00
Tim Graham
10fdd2fc1d
[1.8.x] Moved contrib.sessions tests out of contrib.
...
Backport of fac3a34cbb
from master
2015-02-11 11:54:51 -05:00
Tim Graham
e1046a96bc
[1.8.x] Moved contrib.sitemaps tests out of contrib.
...
Backport of fbc467c26b
from master
2015-02-11 11:52:10 -05:00
Tim Graham
0520cfe94a
[1.8.x] Moved contrib.sites tests out of contrib.
...
Backport of d8341bf024
from master
2015-02-11 11:50:23 -05:00
Tim Graham
36bf6ec9eb
[1.8.x] Moved contrib.flatpages tests out of contrib.
...
Backport of d3a725054f
from master
2015-02-11 11:47:58 -05:00
Tim Graham
a0553d1a7c
[1.8.x] Prevented some test commands from needlessly running system checks.
...
This is a performance optimization and also fixes test errors with the
upcoming merge of contrib tests into tests/. The tests failed on MySQL
because the models with GeometryField were being checked but the
non-GIS MySQL backend didn't know how to handle them.
Backport of 197dd4b8f1
from master
2015-02-11 10:17:53 -05: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
Claude Paroz
cd260d03bd
[1.8.x] Replaced hardcoded URLs in admin_* tests
...
Refs #15779 . This will allow easier admin URL changes, when needed.
Thanks Simon Charette for the review.
Backport of 32e6a7d3a5
from master
2015-02-08 15:12:07 -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
Markus Holtermann
b2b5ea88b7
[1.8.x] Revert "Refs #24075 -- Silenced needless call_command output while running tests"
...
This reverts commit 51dc617b21
.
Backport of bd3d796ecd
from master
2015-02-07 19:52:50 +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
Aymeric Augustin
67787db22a
[1.8.x] Caught all exceptions raised by Engine.get_default().
...
In addition to ImproperlyConfigured, Engine.get_default() may also raise
ImportError or other exceptions. It's better to catch all exceptions in
places where the default engine isn't strictly required.
Backport of 27f9ff45
from master
2015-02-05 20:09:10 +01:00
Riccardo Magliocchetti
4957b8a406
[1.8.x] Fixed #14497 -- Improved admin widget for "read only" FileFields
...
Based on patch by Adam J Forster, Paul Collins, and Julien.
Backport of 2be621e44c
from master
2015-02-04 09:05:41 -05:00
Tim Graham
3af1e7860e
[1.8.x] Removed contrib.auth.forms.mask_password()
...
This function is unused since dce820ff70
after being introduced in 718a5ba1a1
Backport of a53541852d
from master
2015-02-02 11:13:48 -05:00
Tim Graham
26e07a996d
[1.8.x] Removed InlineAdminForm.field_count()
...
This method is unused since 337d102b86
Backport of 327a00f48b
from master
2015-02-01 20:13:58 -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
Matt
7b92acea70
[1.8.x] Fixed #24223 -- Prevented a session test from leaking.
...
Backport of 55c76f4e3b
from master
2015-01-29 14:37:33 -05: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
Tim Graham
1ee18a6046
[1.8.x] Moved imports in GIS tests to avoid failure if dependencies aren't installed.
...
Backport of 1e219ac62f
from master
2015-01-23 16:20:08 -05:00
Ng Zhi An
56015c01c4
[1.8.x] Fixed #24170 -- Implemented decompress for BaseRangeField widgets
...
Backport of 4669b6a807
from master
2015-01-23 15:07:03 -05:00
Tim Graham
1806e059f6
[1.8.x] Isolated a flatpages test; refs #11505 .
...
Backport of 4135d83702
from master
2015-01-22 15:50:26 -05: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
Marc Tamlyn
c80b2144d2
[1.8.x] Fixes #24169 -- More arrayfield specific lookups.
...
varchar()[] cannot compare itself to text[]
Thanks to joelburton for the patch.
Backport of 0ae94d0d31
from master
2015-01-20 10:26:32 +00:00
Tim Graham
06fa019c1b
[1.8.x] Fixed #24153 -- Fixed cookie test compatibility with Python 3.4.3+
...
Backport of b19b81b396
from master
2015-01-19 15:39:36 -05:00
Claude Paroz
6eddaa42c3
[1.8.x] Fixed header of contrib.postgres translation catalog
...
Backport of eb6e12ca6f
from master.
2015-01-19 10:19:42 +01:00
Claude Paroz
8c8a1a0846
[1.8.x] Added contrib.postgres translation catalog
2015-01-18 21:01:42 +01:00
Claude Paroz
6b1b7263f4
[1.8.x] Fixed PostGIS crosses lookup and added crosses test
...
Backport of aff0e54d5
from master.
2015-01-17 15:46:50 +01:00
Claude Paroz
666c12e529
[1.8.x] Updated en translation catalogs
2015-01-17 11:18:45 +01:00