Commit Graph

1905 Commits

Author SHA1 Message Date
David Seddon 744d9a10ef [1.8.x] Refs #14645 -- Documented bug with exclude() and multi-value relations
Backport of 6770b7ecd2 from master
2015-03-20 17:51:57 -04:00
Claude Paroz 5da3153d56 [1.8.x] Fixed #23520 -- Explained that custom plural forms should be avoided
Thanks aruseni for the report.
Backport of 556eb67701 from master.
2015-03-20 20:46:02 +01:00
Karl Hobley a8c53041f9 [1.8.x] Fixed #24495 -- Allowed unsaved model instance assignment check to be bypassed.
Backport of 81e1a35c36 from master
2015-03-18 19:12:46 -04:00
Adrian Andreias 63b998a653 [1.8.x] Fixed allow_migrate() signature in router examples.
Backport of 937643a1f2 from master
2015-03-16 09:39:41 -04:00
Floris den Hengst bd36f2d432 [1.8.x] Fixed doc typos.
Backport of e42a720ba2 from master
2015-03-14 12:29:27 -04:00
Andrei Kulakov 937c8a5a14 [1.8.x] Fixed #24052 -- Doc'd how to write data migrations with models in multiple apps.
Backport of b089759d60 from master
2015-03-13 13:24:18 -04:00
Remco Kranenburg 6f555e54f7 [1.8.x] Refs #23559 -- warned about consequences of letting users edit User model in admin.
Backport of f6b09a7f85 from master
2015-03-13 08:51:24 -04:00
Dan Fellin 9f39715509 [1.8.x] Fixed typo in docs/topics/forms/modelforms.txt.
Backport of 6ff826e12e from master
2015-03-11 19:58:14 -04:00
Psilo Cybin b25e542ecd [1.8.x] Fixed #24456 -- Added links to topics/forms/modelforms.txt.
Backport of 866e71140f from master
2015-03-09 20:53:05 -04:00
Rik 930fc4db7b [1.8.x] Fixed #21661 -- Expanded authentication views documentation
Backport of eb9b7abb83 from master.
2015-03-08 20:40:33 +01:00
Marten Kenbeek bd7c879d5a [1.8.x] Stressed authentication should be successful before logging in a user.
Backport of 8e744fa150 from master
2015-03-05 12:18:13 -05:00
Tim Graham cc525e31bb [1.8.x] Fixed #13015 -- Clarified language about model instances attached to forms.
Backport of a40a34a4b2 from master
2015-03-02 18:45:27 -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
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 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
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
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
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
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
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
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
Andrei Kulakov 3d3c7a62c8 [1.8.x] Updated recommendation for testing keyword arg in custom fields.
Backport of dbabf43920 from master
2015-01-30 08:30:03 -05:00
Rick Hutcheson 801287bff2 [1.8.x] Fixed a typo in the test responses docs.
Backport of 996292d649 from master
2015-01-16 18:24:44 -05:00
Keryn Knight 726a9550db Fixed #24143 -- Encouraged use of Http404 messages for debugging. 2015-01-16 09:41:01 -05:00
Collin Anderson 26a92619f6 Fixed #24124 -- Changed context_processors in the default settings.py 2015-01-12 13:17:44 -05:00
Marc Tamlyn b5c1a85b50 Fixed #24118 -- Added --debug-sql option for tests.
Added a --debug-sql option for tests and runtests.py which outputs the
SQL logger for failing tests. When combined with --verbosity=2, it also
outputs the SQL for passing tests.

Thanks to Berker, Tim, Markus, Shai, Josh and Anssi for review and
discussion.
2015-01-12 08:16:08 +00:00
Aymeric Augustin ee8d5b91e9 Wrote main documentation for templates. 2015-01-10 20:16:19 +01:00
Aymeric Augustin 6c392bb2c0 Moved doc on the DTL's syntax to the ref/ section.
This makes room for a more general introduction about templating.

Updated some links to point to the new location, but kept those that
didn't talk specifically about the DTL.
2015-01-10 19:41:14 +01:00
Loic Bistuer 8f4877c89d Fixed #22583 -- Allowed RunPython and RunSQL to provide hints to the db router.
Thanks Markus Holtermann and Tim Graham for the review.
2015-01-10 00:30:48 +07:00
Claude Paroz e0080cf577 Fixed #24083 -- Corrected is_bound nature in forms topic docs
Thanks ajenhl Trac user for the report.
2015-01-06 08:56:53 +01:00
Tim Graham c87ee41954 Fixed #23861 -- Added an API to deprecate model fields.
Thanks Markus Holterman and Berker Peksag for review.
2015-01-05 11:35:36 -05:00
Alfred Perlstein db3f7c15cb Fixed #23749 -- Documented how to use the database alias in RunPython.
Thanks Markus Holtermann for review and feedback.
2015-01-03 12:06:40 -05:00
Tim Graham 52f0b2b622 Updated six to 1.9.0. 2015-01-02 12:35:41 -05:00
Andriy Sokolovskiy 23f1a8dad2 Added return value to Signal.disconnect(). 2015-01-02 12:00:41 -05:00
Tim Graham a7aaabfaf1 Removed doc note about PasswordResetForm requiring an integer PK.
This limitation was lifted in refs #14881.
2015-01-01 11:38:53 -05:00
Andriy Sokolovskiy 8c99b7920e Fixed #12118 -- Added shared cache support to SQLite in-memory testing. 2014-12-30 10:14:33 -05:00
Aymeric Augustin 9eb4f28e89 Deprecated TEMPLATE_CONTEXT_PROCESSORS. 2014-12-28 17:02:31 +01:00
Aymeric Augustin d3205e3e2e Deprecated TEMPLATE_DIRS. 2014-12-28 17:02:30 +01:00
Aymeric Augustin cf0fd65ed4 Deprecated TEMPLATE_LOADERS. 2014-12-28 17:02:30 +01:00
Aymeric Augustin d3a982556d Deprecated TEMPLATE_STRING_IF_INVALID. 2014-12-28 17:02:30 +01:00
Aymeric Augustin cf1f36bb6e Deprecated current_app in TemplateResponse and render(_to_response). 2014-12-28 17:02:29 +01:00
Aymeric Augustin fdbfc98003 Deprecated some arguments of django.shortcuts.render(_to_response).
dictionary and context_instance and superseded by context.

Refactored tests that relied context_instance with more modern idioms.
2014-12-28 17:02:29 +01:00
Aymeric Augustin 92e8f1f302 Moved context_processors from django.core to django.template. 2014-12-28 17:00:07 +01:00
Tim Graham 3d0c3a0482 Fixed #24056 -- Fixed syntax highlighting in topics/testing/tools.txt. 2014-12-27 19:49:16 -05:00