Markus Holtermann
0cacb8f8ba
[1.8.x] Fixed #24573 -- Considered new related models for reloading
...
Thanks tttomekkk for the report.
Backport of b93690c4652a108b4305c0df34509bfc267fd927 from master
2015-04-21 12:06:11 +02:00
Marten Kenbeek
516907540b
[1.8.x] Refs #24591 -- Optimized cloning of ModelState objects.
...
Changed ModelState.clone() to create a deepcopy of self.fields.
2015-04-20 19:23:15 -04:00
Tim Graham
bd0883d5cc
[1.8.x] Fixed typo in docs/releases/1.8.1.txt
2015-04-17 11:25:55 -04:00
Eric Whitmire
901de5fbce
[1.8.x] Fixed #24655 -- Fixed JavaScript path of contrib.admin's related field widget
2015-04-17 11:22:22 -04:00
Claude Paroz
bbfcd9618b
[1.8.x] Fixed #24595 -- Prevented loss of null info in MySQL field alteration
...
Thanks Simon Percivall for the report, and Simon Charette and Tim
Graham for the reviews.
Backport of 02260ea3f6 from master.
2015-04-17 11:01:36 +02:00
Anssi Kääriäinen
581afddc77
[1.8.x] Fixed #24605 -- Fixed incorrect reference to alias in subquery.
...
Thanks to charettes and priidukull for investigating the issue, and to
kurevin for the report.
Backport of 355c5edd9390caad5725375abca03460805f663b from master
2015-04-16 09:31:29 -04:00
Anssi Kääriäinen
70ff455a35
[1.8.x] Fixed #24615 -- ordering by expression not part of SELECT
...
Fixed queries where an expression was used in order_by() but the
expression wasn't in the query's select clause (for example the
expression could be masked by .values() call)
Thanks to Trac alias MattBlack85 for the report.
Backport of fb5c7748da from master.
2015-04-16 09:42:42 +02:00
Simon Charette
a988cc8f18
[1.8.x] Fixed typos in the 1.7.7 release notes.
...
Backport of 28e89783254ac0899a26eee324555a9033ccbe9a from master
2015-04-14 22:14:52 -04:00
Tim Graham
62012b071e
[1.8.x] Removed docs for removed transaction APIs.
...
Backport of 6b8c969878fb937c94eaf2cdc3de94554f171bdd from master
2015-04-14 13:53:18 -04:00
Markus Holtermann
c8b89964de
[1.8.x] Fixed title in 1.7.8 release notes
...
Refs 309142dba10e24557b67a2734aa67d56518c0b14
Backport of 825bb0ab08cec353edcd2b9aea651bfe9392ef97 from master
2015-04-14 19:28:03 +02:00
Andrew Pinkham
b1d83209d0
[1.8.x] Fixed #24635 -- Updated deprecated urls.py examples in default project template.
...
Backport of 0b5abb03218ff0c575cee0c83e446bab81cbfadd from master
2015-04-14 12:58:31 -04:00
peterfarrell
309142dba1
[1.8.x] Fixed #24637 -- Fixed database introspection with SQLite 3.8.9.
...
Backport of f8e8853b51476af1cc75a229dadc990c9ccf45ec from master
2015-04-14 11:30:21 -04:00
Jay Wineinger
496800b3bf
[1.8.x] Fixed #24611 -- Fixed update() crash with related UUID pk object.
...
Backport of 923da0274a9a8c4ef2ac9776f71bd14628e39fc3 from master
2015-04-13 12:20:41 -04:00
Markus Holtermann
3862826fed
[1.8.x] Fixed #24625 -- Prevented arbitrary file inclusion in admindocs
...
Thanks Tim Graham for the review.
Backport of 09595b4fc67ac4c94ed4e0d4c69acc1e4a748c81 from master
2015-04-11 21:12:09 +02:00
Claude Paroz
774d09a7dd
[1.8.x] Fixed #24624 -- Replaced obsoleted rel.opts in admindocs view
...
Thanks Scott Sanders for the report, and Markus Holtermann and
Tim Graham for the reviews. Refs #24381 .
Backport of 4e7ed8d0d from master.
2015-04-11 15:34:02 +02:00
Tim Graham
b1dc128a03
[1.8.x] Fixed #24578 -- Fixed crash with QuerySet.update() on FK to O2O fields.
...
Thanks Anssi Kääriäinen for review.
Backport of 10b4c010ab2cdaa6ba8bfaec3e3540299ea77be from master
2015-04-09 08:24:07 -04:00
Patryk Zawadzki
9f632dc702
[1.8.x] Fixed #24513 -- Made sure a model is only rendered once during reloads
...
This also prevents state modifications from corrupting previous states.
Previously, when a model defining a relation was unregistered first,
clearing the cache would cause its related models' _meta to be cleared
and would result in the old models losing track of their relations.
Backport of 0385dad073270c37f8c4a5f13edce43f2a69ba8a from master
2015-04-07 14:56:33 +02:00
Jon Dufresne
551d4bb46a
[1.8.x] Fixed #24584 -- Fixed microsecond handling with older MySQLdb
...
Backport of 2cf58e80d from master.
2015-04-06 22:45:36 +02:00
Marten Kenbeek
773387ce42
[1.8.x] Fixed #24278 -- Fixed serialization of migration operations.
...
Fixed MigrationWriter.serialize() to correctly handle migration
operations by utilizing OperationWriter.
Thanks Piotr Maliński for the report.
Backport of e8e4f978dd4b7a3d0c689c6e3301e3c6f9e50003 from master
2015-04-05 20:29:27 +02:00
Claude Paroz
3a76276212
[1.8.x] Fixed #24569 -- Made some translation functions accept None value
...
get_language() can return None when translations are deactivated.
Thanks Nicola Peduzzi for the reporti and Tim Graham for the review.
Backport of 7a0d9b5cda from master.
2015-04-04 10:58:54 +02:00
Claude Paroz
7821f856a6
[1.8.x] Fixed #24571 -- Restored testserver positional arguments parsing
...
Thanks Domas Lapinskas for the report and Tim Graham for the
review.
Backport of 426b63ba04 from master.
2015-04-04 10:48:40 +02:00
Ian Lee
dcf2bbf0f0
[1.8.x] Fixed minor typo in Cryptography section of 1.8 release notes
...
Backport of 90c4c300a816e92f559bcec19c0778499efc19ef from master
2015-04-03 07:27:15 -04:00
Baptiste Mispelon
09188b5024
[1.8.x] Fixed #24566 -- Added support for serializing timedelta
...
Thanks to knbk for the report.
Backport of 30a3c2f74c030449d3a8b9f02ab6744874712e54 from master.
2015-04-02 17:41:08 +02:00
Tim Graham
0c01913d55
[1.8.x] Added stub release notes for 1.8.1.
...
Backport of 1b605838bf1fa5527fd82b0f94d11c43d41f3f81 from master
2015-04-01 16:18:47 -04:00
Tim Graham
2011c7a031
[1.8.x] Added release date for Django 1.8.
...
Backport of 61d6c5d02effef8852d344e4fcaf0754fd47d741 from master
2015-04-01 15:31:16 -04:00
Tim Graham
793ecf6db7
[1.8.x] Documented jinja2 install requirement.
...
Backport of 56286542dbb7d1cca253b25de0eb3eb4392ff271 from master
2015-03-31 07:45:02 -04:00
Tim Graham
770427c289
[1.8.x] Made is_safe_url() reject URLs that start with control characters.
...
This is a security fix; disclosure to follow shortly.
2015-03-18 19:23:21 -04:00
Tim Graham
5447709a57
[1.8.x] Fixed an infinite loop possibility in strip_tags().
...
This is a security fix; disclosure to follow shortly.
2015-03-18 19:23:21 -04:00
Tim Graham
5a8ef2a3cf
[1.8.x] Added stub release notes for security releases.
2015-03-18 19:23:21 -04:00
Karl Hobley
a8c53041f9
[1.8.x] Fixed #24495 -- Allowed unsaved model instance assignment check to be bypassed.
...
Backport of 81e1a35c364e5353d2bf99368ad30a4184fbb653 from master
2015-03-18 19:12:46 -04:00
Tim Graham
ddb95d6d53
[1.8.x] Refs #24487 -- Added upgrade tips about removal of SortedDict.
...
Thanks Pascal Chambon for the initial patch.
Backport of c5c8751147d41913a05e86097ea29ccc9fc2e5be from master
2015-03-17 13:42:54 -04:00
John Giannelos
e150bbd4d6
[1.8.x] Fixed #24427 -- Stopped writing migration files in dry run mode when merging.
...
Also added display of migration to stdout when verbosity=3.
Backport of 8758a63ddbbf7a2626bd84d50cfe83b477e8de0a from master
2015-03-16 19:45:55 -04:00
Steven Das
f2db113f51
[1.8.x] Added comma to improve readability in 1.7 release notes.
...
Backport of 4f494ed0c60cdfc44b65aeea7f42f6b7245c03af from master
2015-03-16 08:17:01 -04:00
Matthew Wilkes
22a67d22e9
[1.8.x] Refs #24354 -- Prevented repointing of relations on superclasses when migrating a subclass's name change
...
Forwardport of test and release note from stable/1.7.x
Backport of ae87ad005f7b62f5fa5a29ef07443fa1bbb9baf0 from master
2015-03-14 15:47:10 -04:00
Tim Graham
ffa4ff5e8c
[1.8.x] Added stub release notes for 1.7.7.
...
Backport of ea9157f681654d393c970108866edb344b65a1aa from master
2015-03-09 13:10:09 -04:00
Baptiste Mispelon
35d68e8e76
[1.8.x] Refs #24461 -- Added test/release notes for XSS issue in ModelAdmin.readonly_fields
...
This issue was fixed by refs #24464 .
2015-03-09 10:15:12 -04:00
Tim Graham
980d604bf2
[1.8.x] Clarified an item in 1.7.6 release notes.
...
Backport of 300fdbbebba45cb4e7f32edc524171019d9bce80 from master
2015-03-09 10:11:44 -04:00
Erik Romijn
d16e4e1d6f
[1.8.x] Fixed #24464 -- Made built-in HTML template filter functions escape their input by default.
...
This may cause some backwards compatibility issues, but may also
resolve security issues in third party projects that fail to heed warnings
in our documentation.
Thanks Markus Holtermann for help with tests and docs.
Backport of fa350e2f303572ee8f9a8302dda45a12288d3d95 from master
2015-03-09 09:31:07 -04:00
Jean-Louis Fuchs
1ae2df6bfc
[1.8.x] Fixed #24447 -- Made migrations add FK constraints for existing columns
...
When altering from e.g. an IntegerField to a ForeignKey, Django didn't
add a constraint.
Backport of f4f0060feaee6bbd76a0d575487682bc541111e4 from master
2015-03-07 14:15:27 +01:00
Tim Graham
31a1f96bd3
[1.8.x] Added stub release notes for 1.7.6.
...
Backport of 71820721a19f5628b3176f16813d47378cb2c3cb from master
2015-02-25 09:11:43 -05:00
Tim Graham
a9ab8bd4dd
[1.8.x] Added release date for 1.7.5 release.
...
Backport of aca73737da8ba173ad9435b1e9e1fe5d8516f3b3 from master
2015-02-25 09:03:38 -05:00
Tim Graham
81911f29b7
[1.8.x] Reverted "Fixed #24325 -- Documented change in ModelForm.save() foreign key access."
...
This reverts commit 0af3822dc362b6253bda1c9699466dd0bbbf6066.
It's obsoleted by refs #24395 .
Backport of d298b1ba5043eaa40f3f4bebe3c7634b359ba34b from master
2015-02-24 11:51:10 -05:00
Kenneth Kam
a752a2c951
[1.8.x] Fixed #23762 -- clarified CACHE_MIDDLEWARE_ANONYMOUS_ONLY deprecation in docs
...
Backport of e83aba0e2cce16cd1b32d1c172239a4e20867e95 from master
2015-02-23 09:23:49 -05:00
Emin Mastizada
ff2e0896a3
[1.8.x] Added formats for the Azerbaijani locale.
...
Backport of dda2a3cf4cc29d01de180f66d19441f300732e52 from master
2015-02-23 07:37:42 -05:00
Michael Manfre
ed941ef2d0
Fixed signature of BaseDatabaseOperations.date_interval_sql()
...
Backport of 7fa7dd48c4 from master
2015-02-23 00:04:57 -05:00
Sean Wang
f0780df608
[1.8.x] Fixed #24358 -- Corrected code-block directives for console sessions.
...
Backport of eba6dff581aa8bd6a1c08456e83e68ad09ae4ec3 from master
2015-02-22 09:36:51 -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 bed504d70bede3431a213203c13a33905d6dbf77 from master
2015-02-20 21:55:50 +07:00
Tim Graham
18dceab05b
[1.8.x] Fixed typo in path to is_safe_url()
...
Backport of dd0b487872de4e3ff966da51e3610bac996e44f0 from master
2015-02-20 09:22:17 -05:00
Tim Graham
730fb593ad
[1.8.x] Fixed #24335 -- Bumped required psycopg2 version to 2.4.5 (2.5 for contrib.postgres).
...
Backport of 3adc5f1ee6618a615db07d4a868b366a15c39f82 from master
2015-02-17 06:21:59 -05:00
Aymeric Augustin
e8950668ca
[1.8.x] Deprecated TEMPLATE_DEBUG setting.
...
Backport of 15b711b from master.
2015-02-15 20:48:48 +01:00