Tim Graham
81911f29b7
[1.8.x] Reverted "Fixed #24325 -- Documented change in ModelForm.save() foreign key access."
...
This reverts commit 0af3822dc3
.
It's obsoleted by refs #24395 .
Backport of d298b1ba50
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 e83aba0e2c
from master
2015-02-23 09:23:49 -05:00
Ian Lee
04c262aea9
[1.8.x] Broke long lines in code examples.
...
The website only renders code blocks at 96 chars, and therefore
long code lines get wrapped. Manually breaking the lines prevents
the wrapping from occurring.
Backport of 00fbd8fd52
from master
2015-02-23 07:46:00 -05:00
Emin Mastizada
ff2e0896a3
[1.8.x] Added formats for the Azerbaijani locale.
...
Backport of dda2a3cf4c
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
Tim Graham
ddc1e0c0fb
[1.8.x] Updated tutorial to use explicit relative imports.
...
Backport of b2f331dc68
from master
2015-02-22 14:20:25 -05:00
Tim Graham
576c1096d2
[1.8.x] Corrected sqlmigrate output in tutorial 1.
...
Backport of ff5e47e7a4
from master
2015-02-22 12:29:39 -05:00
Tim Graham
fbddd946ad
[1.8.x] Fixed #24371 -- Cautioned against trying to switch databases.
...
Backport of 7901eccf2e
from master
2015-02-22 10:12:15 -05:00
Sean Wang
f0780df608
[1.8.x] Fixed #24358 -- Corrected code-block directives for console sessions.
...
Backport of eba6dff581
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 bed504d70b
from master
2015-02-20 21:55:50 +07:00
Andrei Kulakov
564487601e
[1.8.x] Fixed #23932 -- Added how-to on migrating unique fields.
...
Backport of 1f9e44030e
from master
2015-02-20 21:53:15 +07:00
Tim Graham
18dceab05b
[1.8.x] Fixed typo in path to is_safe_url()
...
Backport of dd0b487872
from master
2015-02-20 09:22:17 -05: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
Aymeric Augustin
cc4effba0b
[1.8.x] Set context.template instead of context.engine while rendering.
...
This opens more possibilities, like accessing context.template.origin.
It also follows the chain of objects instead of following a shortcut.
Backport of 1bfcc95
from master
2015-02-19 22:10:56 +01:00
Tim Graham
e4df10668c
[1.8.x] Added an import to docs/topics/testing/advanced.txt example.
...
Backport of 32b67b3fd1
from master
2015-02-17 13:53:57 -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 3adc5f1ee6
from master
2015-02-17 06:21:59 -05:00
Tim Graham
fb9551189d
[1.8.x] Fixed #24350 -- Freshened up database install topic section.
...
Backport of 35f0cae19d
from master
2015-02-16 14:59:57 -05:00
Tim Graham
50ec49c087
[1.8.x] Removed a note about old versions of MySQLdb.
...
Backport of f3bc7c5447
from master
2015-02-16 14:29:30 -05:00
Carl Meyer
e63d9b98e7
[1.8.x] Fixed #23892 -- Clarified compatibility policy for migrations.
...
Backport of e35c70bef4
from master
2015-02-16 10:12:13 -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
Aymeric Augustin
69c662c981
[1.8.x] Documented how to set up the Jinja2 environment.
...
This may also help with "Why do context processors not work in Jinja2
templates?" etc.
Backport of 9fbd302
from master
2015-02-15 20:44:40 +01:00
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
Claude Paroz
a1fc97c1a7
[1.8.x] Fixed #24144 -- Documented that GEOSGeometry.envelope can return a point
...
Thanks Manel Clos for the report.
Backport of 1379165b35
from master.
2015-02-14 16:20:58 +01:00
Tim Graham
8657e7caaa
[1.8.x] Fixed #24325 -- Documented change in ModelForm.save() foreign key access.
...
Backport of 0af3822dc3
from master
2015-02-14 08:09:27 -05: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
Joe Simpson
8277f5d7d0
[1.8.x] Added each_context() and a template tip to custom admin view docs.
...
Backport of 648e516b8d
from master
2015-02-13 10:38:29 -05: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
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
6476fa73d3
[1.8.x] Forwardported item in 1.7.5 release notes.
...
Backport of a93c5fb2bf
from master
2015-02-12 14:06:21 -05:00
Thomas Güttler
6b8c8d7e18
[1.8.x] Clarified timeout=0 in cache docs.
...
Backport of e519ee1d35
from master
2015-02-12 10:32:56 -05: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
Tim Graham
411028df53
[1.8.x] Updated docs and runtests.py for removal of tests from contrib.
...
Backport of 7cf3a5786b
from master
2015-02-11 12:05:55 -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
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
Peter Inglesby
b6323302e0
[1.8.x] Fixed docs typo
...
Backport of a8f1c70dce
from master
2015-02-07 18:47:17 +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
6adc23d6b6
[1.8.x] Removed gather_profile_stats.py
...
This script uses the unmaintained hotshot module (gone on Python 3)
and doesn't seem to be Django specific in any way.
Backport of 388d986b8a
from master
2015-02-06 08:55:02 -05:00
minusf
5bc9904b35
[1.8.x] Removed inaccurate sentence about PO files in translation docs.
...
Backport of aea103b6a5
from master
2015-02-06 07:46:14 -05:00
Tom Christie
f5749252ea
[1.8.x] Improved nested ArrayField example
...
Backport of 737b184d91
from master
2015-02-05 11:35:23 +01:00
Josh Schneier
16e3910e9c
[1.8.x] Fixed typos of "select_related" in docs and tests.
...
Backport of 7d363ed432
from master
2015-02-04 07:32:34 -05:00
Tim Graham
dd83bab931
[1.8.x] Demoted "Installing a distribution-specific package" in install notes.
...
Backport of 281fc03474
from master
2015-02-03 16:38:05 -05:00
Tim Graham
ff39de1e1e
[1.8.x] Added a "Writing migrations" how-to.
...
Backport of 570912a97d
from master
2015-02-03 13:46:56 -05:00
minusf
b35c226154
[1.8.x] Fixed typos in docs/ref/forms/validation.txt.
...
Backport of 66f5aa9fa5
from master
2015-02-03 12:27:16 -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
5fdd74f4be
[1.8.x] Fixed broken links in class based views flattend index; refs #24250 .
...
Backport of 9a391fbd61
from master
2015-02-03 09:12:08 -05:00
Tim Graham
6454716264
[1.8.x] Fixed #24250 -- Corrected mistakes in FormMixin docs.
...
Backport of 5d193d042a
from master
2015-02-03 08:42:49 -05:00
Aymeric Augustin
f87457a460
[1.8.x] Fixed #24168 -- Allowed selecting a template engine in a few APIs.
...
Specifically in rendering shortcuts, template responses, and class-based
views that return template responses.
Also added a test for render_to_response(status=...) which was missing
from fdbfc980
.
Thanks Tim and Carl for the review.
Backport of 2133f31
from master.
Conflicts:
docs/topics/http/shortcuts.txt
tests/generic_views/test_base.py
2015-02-03 08:32:14 +01:00
Matt Westcott
ef90ca5f42
[1.8.x] Fixed #24255 -- Specifed 'fields' parameter in modelformset_factory / inlineformset_factory examples.
...
Backport of 8d64aae883
from master
2015-02-02 10:47:42 -05:00
Tim Graham
6d0538bd8c
[1.8.x] Simplified a versionchanged notes for LiveServerTestCase.
2015-02-01 21:06:27 -05:00