Commit Graph

8110 Commits

Author SHA1 Message Date
Mark Henwood f4c09d3e42 [1.8.x] Fixed #24882 -- Documented Migration.run_before
Backport of dee1bcd08a from master
2015-06-06 09:00:36 -04:00
Mark Lavin 0cfb7ed5c5 [1.8.x] Fixed #24924 -- Join promotion for multiple Case expressions
Backport of 541f4ea546 from master
2015-06-05 12:23:08 -04:00
Andriy Sokolovskiy 469f1e362b [1.8.x] Fixed #24833 -- Fixed Case expressions with exclude(). 2015-06-05 11:03:41 -04:00
Yamila Moreno 7dcfbb2ef3 [1.8.x] Fixed #22571 -- Added clarification about auto_now_add=True
Backport of cbe4efcbc1 from master
2015-06-05 10:04:24 -04:00
Tim Graham a1d8a205bc [1.8.x] Capitalized "Python" in docs.
Backport of 2fbea621e6 from master
2015-06-05 08:38:43 -04:00
Ian Foote 8d33889422 [1.8.x] Fixed #24925 -- Document using Coalesce on MySQL
Add warning for using Coalesce with python values on MySQL and document
workaround.

Backport of 14dead04ac from master
2015-06-05 08:25:37 -04:00
Alasdair Nicol cccb7b49dc [1.8.x] Fixed #24191 -- Documented Form.changed_data
Thanks rhertzog and Björn Påhlsson for the suggestion.

Backport of 5c98223f39 from master
2015-06-04 13:52:15 -04:00
Carl Meyer efdcd13c34 [1.8.x] Fixed #24628 -- Fixed applied status for squashed migrations.
Backport of 492537ac18 from master.
2015-06-02 16:21:58 -06:00
Tim Graham de62c77460 [1.8.x] Added headings to i18n template tags and filters.
Backport of 9ca0961b8a from master
2015-06-02 15:51:26 -04:00
Carl Meyer 98b40ffe61 [1.8.x] Fixed #24895 -- Fixed loading a pair of squashed migrations with a dependency.
Backport of 84522c0d16 from master.
2015-06-02 12:10:04 -06:00
zauddelig 7f92b6e576 [1.8.x] Fixed #24897 -- Allowed using choices longer than 1 day with DurationField
Backport of 262d4db8c4 from master
2015-06-02 12:42:31 -04:00
Andriy Sokolovskiy 9d83de8ff3 [1.8.x] Fixed #24831 -- Fixed pickling queryset with prefetch_related() after deleting objects.
Backport of 2913d6b77d from master
2015-06-02 10:07:45 -04:00
Tim Graham 1c57d7e7fa [1.8.x] Fixed #24893 -- Fixed lack of unique constraint when changing a field from primary_key=True to unique=True
Backport of e1e6399c2c from master
2015-06-02 09:32:22 -04:00
Tim Graham 8911d2e20f [1.8.x] Fixed #24892 -- Fixed quoting of SQL when renaming a field to AutoField in PostgreSQL
Backport of 5ab8680983 from master
2015-06-02 09:15:08 -04:00
Simeon J Morgan 3b41850adc [1.8.x] Fixed #24896 -- Doc'd clickjacking protection doesn't overwrite X-Frame-Options header.
Backport of 0b5fb8e72c from master
2015-06-02 09:02:46 -04:00
Maximiliano aefa3a6a03 [1.8.x] Simplified wording in QuerySet.update() docs.
Backport of bf07ba523a from master
2015-06-01 09:42:53 -04:00
Przemysław Suliga 52b5890f52 [1.8.x] Fixed #24880 -- Added more explicit docs on select_for_update() on SQLite.
Backport of d29ed3f355 from master
2015-06-01 08:53:59 -04:00
Tim Graham b8dce1af3a [1.8.x] Refs #24811 -- Fixed syntax error in CREATE EXTENSION example query.
Backport of c954931abd from master
2015-05-31 06:24:36 -04:00
Tim Graham 2456276b02 [1.8.x] Fixed #24851 -- Fixed crash with reverse one-to-one relation in ModelAdmin.list_display 2015-05-28 10:37:31 -04:00
Andriy Sokolovskiy f65d4db8a8 [1.8.x] Fixed #24817 -- Prevented loss of null info in MySQL field renaming.
Backport of 80ad5472ce from master
2015-05-28 10:08:14 -04:00
Tim Graham df6a4cac52 [1.8.x] Refs #24853 -- Documented a limitation of RunPython and unmigrated apps. 2015-05-27 14:21:57 -04:00
Paweł Marczewski 7ee6043dba Fixed #24847 -- Prevented items set on a RequestContext from being lost.
Backport of 300e8baf94 from master
2015-05-27 10:08:31 -04:00
Kevin Marsh d411586866 [1.8.x] Removed unused import in example code in docs/topics/auth/default.txt
Backport of 10945ebeb8 from master
2015-05-27 09:41:22 -04:00
Tim Graham b16f84f15b [1.8.x] Refs #24836 -- Reverted "Simplified the lazy CSRF token implementation in csrf context processor."
This reverts commit 8099d33b65 as it caused
a regression that cannot be solved without changing force_text() which has
a small risk of introducing regressions. This change will remain in master
along with an update to force_text().
2015-05-27 09:29:45 -04:00
I am Clinton 1e3741b8a3 [1.8.x] Fixed typos in docs/ref/forms/widgets.txt
Backport of 14f20c1fdc from master
2015-05-26 10:48:37 -04:00
Andrea Grandi 62c19a21b6 Fixed #24844 -- Corrected has_changed implementation for HStoreField.
Backport of 43b2d88a5b from master
2015-05-25 21:10:07 -04:00
Paweł Marczewski 2aa2b9f291 [1.8.x] Fixed #24835 -- Fixed QuerySet.exists() after an annotation with Count()
QuerySet.exists() incorrectly handled query.group_by = True
case (grouping by all select fields), causing GROUP BY
expressions to be wiped along with select fields.

Backport of 801a84ae32 from master
2015-05-25 20:47:28 -04:00
Marten Kenbeek 1ac4c7d415 [1.8.x] Fixed #24848 -- Fixed ValueError for faulty migrations module.
Added apps to unmigrated apps if the migrations module is a file
or a folder missing __init__.py.

Thanks to Ernest0x for the bug report.

Backport of d73176a842 from master
2015-05-25 13:56:37 -04:00
I am Clinton 122e688a9c [1.8.x] Minor edits to docs/ref/forms/validation.txt
Backport of 73b5b0b4a5 from master
2015-05-25 13:19:54 -04:00
Villiers Strauss 4311fd2c0a [1.8.x] Fixed #24841 -- Made BaseRangeField.prepare_value() call base_field's prepare_value()
Backport of 614bec41b5 from master
2015-05-25 12:07:25 -04:00
I am Clinton 1f33bf78fd [1.8.x] Fixed typos in docs/ref/forms/fields.txt
Backport of a6b77abff7 from master
2015-05-25 10:50:33 -04:00
I am Clinton 87934c4b68 [1.8.x] Fixed typos in HTTP decorator docs.
Backport of 0b0bb6100d from master
2015-05-25 07:39:06 -04:00
Tim Graham 9def46c1c3 [1.8.x] Fixed #24811 -- Added details on installing PostgreSQL extensions.
Backport of 9ef2615d49 from master
2015-05-23 21:36:17 -04:00
I am Clinton ae03d1ac5b [1.8.x] Fixed mistakes in docs/topics/forms/formsets.txt examples.
Backport of 9c8a2ab81d from master
2015-05-22 11:29:49 -04:00
Tim Graham 6b339b5c84 [1.8.x] Fixed #24839 -- Removed references to deprecated contrib.webdesign.
Backport of e11a08ee15 from master
2015-05-22 09:40:01 -04:00
Tim Graham f7401b6bb0 [1.8.x] Fixed typo in docs/topics/auth/default.txt
Backport of 00d763a4fb from master
2015-05-22 06:51:26 -04:00
Laurent Peuch 27fdd45620 [1.8.x] Enhanced registration/login.html example template.
Backport of 1369da676f3bd83d694ca5f00c5012f16b007acb from master
2015-05-21 20:46:07 -04:00
I am Clinton 6260ae7015 [1.8.x] Cosmetic edits and minor fixes to docs/ref/contrib/admin/index.txt
Backport of 32f0c8f796 from master
2015-05-21 20:24:06 -04:00
Andrei Kulakov 5a0e39b2d5 [1.8.x] Fixed #24813 -- Documented {% include %} debug behavior variance
Backport of fc3409b093 from master
2015-05-21 19:52:32 -04:00
garwoodpr d3a8ce7658 [1.8.x] Cosmetic edits and minor corrections to docs/ref/django-admin.txt.
Backport of 99ec80f84a from master
2015-05-21 19:20:31 -04:00
garwoodpr 4c13140553 [1.8.x] Cosmetic edits and minor corrections to docs/ref/settings.txt.
Backport of 5edf25bddd from master
2015-05-21 19:06:33 -04:00
Tim Graham 4bf6f55cc6 [1.8.x] Added stub release notes for 1.8.3.
Backport of 7b8008a078 from master
2015-05-20 14:18:35 -04:00
Tim Graham 2cf7b26c84 [1.8.x] Added release date for 1.8.2.
Backport of ebe994a42c from master
2015-05-20 13:49:44 -04:00
Tim Graham 31cb25adec [1.8.x] Fixed incorrect session.flush() in cached_db session backend.
This is a security fix; disclosure to follow shortly.

Thanks Sam Cooke for the report and draft patch.
2015-05-20 13:49:07 -04:00
Anssi Kääriäinen db65660928 [1.8.x] Fixed #24705 -- Fixed negated Q objects in expressions.
Avoided split_exclude() for Q when used as an expression.

Backport of bc87061a3c from master
2015-05-20 09:41:42 -04:00
latyas(懒) 63d60dfe29 [1.8.x] Fixed typo in docs/ref/contrib/admin/index.txt
Backport of 8b106cfaa0 from master
2015-05-20 08:16:36 -04:00
Tim Graham aeafdf9398 [1.8.x] Fixed #24784 -- Fixed visibility regression in admin's FK widget.
Backport of fb94e7b8cf from master
2015-05-19 21:27:57 -04:00
I am Clinton b261ab2e43 [1.8.x] Made minor edits to docs/intro/tutorial01.text
Backport of f3b51f5193 from master
2015-05-19 12:33:38 -04:00
Claude Paroz 7915cbb360 [1.8.x] Fixed #24739 -- Documented translation fallback change
Refs #24503.
Backport of 1046c8afec from master.
2015-05-18 18:41:39 +02:00
Tim Graham 02a4bf7105 [1.8.x] Added docs for assertRaisesMessage as context manager.
Backport of a0175724b0 from master
2015-05-18 10:16:14 -04:00
I am Clinton 436f914dc5 [1.8.x] Fixed typos in docs/ref/request-response.txt
Backport of e4f0e5a981 from master
2015-05-18 09:46:09 -04:00
Tim Graham cc4ee06279 [1.8.x] Fixed #24630 -- Clarified docs about RunPython transactions.
Thanks Markus Holtermann for review.

Backport of 307acc745a from master
2015-05-17 18:51:40 -04:00
Tim Graham 6108febe2a [1.8.x] Fixed typo in docs/topics/http/sessions.txt
Backport of fc1eea59c0 from master
2015-05-17 18:37:03 -04:00
Claude Paroz cdf7f90f95 [1.8.x] Fixed #24791 -- Added fallback when 'postgres' database isn't available
Thanks Carl Meyer and Tim Graham for the reviews.
Backport of 322605035 from master.
2015-05-15 18:46:05 +02:00
Bo Lopker 3c659856eb [1.8.x] Fixed #24799 -- Fixed session cookie deletion when using SESSION_COOKIE_DOMAIN
Backport of 2dee853ed4 from master
2015-05-15 11:24:18 -04:00
Claude Paroz 6a0d9f068f [1.8.x] Fixed #24757 -- Recreated MySQL index when needed during combined index removal
Thanks Thomas Recouvreux for the report and Tim Graham for the tests and
review.
Backport of ae635cc36 from master.
2015-05-15 17:08:49 +02:00
I am Clinton f19932591b [1.8.x] Minor edits to docs/topics/http/urls.txt
Backport of dce004ab72 from master
2015-05-14 19:32:27 -04:00
Tim Graham df0674eabb [1.8.x] Fixed #24751 -- Fixed HStoreField isnull lookup.
Backport of 3c8fe5dddf from master
2015-05-13 10:34:15 -04:00
Tim Graham 7ea6477b3a [1.8.x] Refs #24743 -- Clarified migrations performance note in 1.8.1 release notes.
Backport of 81d4ce4a6d from master
2015-05-13 10:16:49 -04:00
Piotr Jakimiak 6483f133bc [1.8.x] Fixed broken link in settings docs
Backport of ca51c55915 from master
2015-05-13 07:02:27 -04:00
Charles Dee Rice e4fa298e30 [1.8.x] Fixed #24789 -- Fixed wrong positional args order in doc example
Arguments shown in example code (signal, sender, instance) appeared to
be the incorrect positional arguments for a post_save signal (which
might start as: sender, instance, created), as documented:
​https://docs.djangoproject.com/en/1.8/ref/signals/#post-save

Backport of 4f3c444241 from master.
2015-05-13 10:27:18 +02:00
Abhaya Agarwal 290c9d6654 [1.8.x] Fixed #24698, #24712 -- Added ForeignKey.get_db_prep_value()
Fixed crashes with ForeignKey to UUIDField and inheritance with UUIDField
primary keys.
2015-05-12 19:37:37 -04:00
I am Clinton 3ad1074cf9 [1.8.x] Light edits to docs/topics/forms/index.txt
Backport of ec74dba2ab from master
2015-05-12 09:17:14 -04:00
Anssi Kääriäinen d5ce2dd7bc [1.8.x] Fixed #24748 -- Fixed incorrect GROUP BY on MySQL in some queries
When the query's model had a self-referential foreign key, the
compiler.get_group_by() code incorrectly used the self-referential
foreign key's column (for example parent_id) as GROUP BY clause
when it should have used the model's primary key column (id).

Backport of adc57632bc from master
2015-05-11 11:52:14 -04:00
Anssi Kääriäinen 056a91dbfa [1.8.x] Fixed #24766 -- Added join promotion for Case expressions
Backport of be9d645346 from master
2015-05-11 11:17:37 -04:00
Tim Graham d3a8f36fdb [1.8.x] Fixed #24780 -- Removed outdated discussion of signals and custom users.
Backport of 8e86d9d3df from master
2015-05-11 09:10:44 -04:00
Ian Foote e7b703d050 [1.8.x] Fixed typo in docs/topics/testing/tools.txt
Backport of c21b832c12 from master
2015-05-09 18:06:38 -04:00
David Krisch 51ebc8805e [1.8.x] Fixed #24763 -- Moved DoesNotExist exception to model docs.
Backport of 1a62f19707 from master
2015-05-08 13:13:45 -04:00
Ian Foote eb534f6412 [1.8.x] Fixed typo in docs/ref/models/expressions.txt
Backport of 756a727252 from master
2015-05-07 20:15:47 -04:00
Michael Blatherwick 9116a3c591 [1.8.x] Fixed typo in 1.8 release notes.
Backport of 3baebf52aa from master
2015-05-07 08:53:24 -04:00
Sławomir Ehlert 178b8fbdcd [1.8.x] Fixed typos in docs/ref/contrib/gis/geoquerysets.txt
Backport of 64ed8cdc9f from master
2015-05-06 09:59:10 -04:00
Anssi Kääriäinen 5b5858575c [1.8.x] Fixed #24752 -- query crash when reusing Case expressions
Case expressions weren't copied deep enough (self.cases list was
reused resulting in an error).

Backport of 7b05d2fdae from master
2015-05-05 11:38:48 -04:00
Abhaya Agarwal eb00b427fc [1.8.x] Fixed #24736 -- Documented the Sitemap.limit attribute
Backport of 9096e2b5f7 from master
2015-05-05 09:22:54 -04:00
Tim Graham efb9860432 [1.8.x] Used a simpler word that doesn't fail the spelling checker.
Backport of 17b1f7886c from master
2015-05-04 10:55:57 -04:00
Aymeric Augustin 4c880428d9 [1.8.x] Added release notes for previous commit.
Backport of 81f7651 from master
2015-05-04 07:42:50 +02:00
José Padilla 0c79932881 [1.8.x] Fixed typo in translation import statement
Backport of b0bd1f0e19 from master
2015-05-02 20:21:36 +02:00
Tim Graham f0f8116a5f [1.8.x] Added stub release notes for 1.8.2.
Backport of 3cb386b8c2 from master
2015-05-01 16:52:46 -04:00
Tim Graham cc9eeceee2 [1.8.x] Added dates to release notes.
Backport of 06aaed41a4 from master
2015-05-01 16:25:06 -04:00
Tim Graham d7ea279f76 [1.8.x] Fixed #24724 -- Fixed GIS initialization crash on Windows.
Backport of 3c4fca271b from master
2015-05-01 16:18:53 -04:00
Tim Graham 77ed1548f2 [1.8.x] Fixed #24676 -- Fixed help text positioning in ``contrib.admin`` filter_* widgets.
Backport of 2c3ce26beb from master
2015-05-01 15:32:45 -04:00
Dave Hodder 53031cce42 [1.8.x] Updated capitalization in the word "JavaScript" for consistency
Backport of 08c980d752 from master
2015-05-01 13:27:40 -04:00
daphshez c45fd57f68 [1.8.x] Fixed #23271 -- Fixed makemessages crash/test failure for some locales.
Backport of 57202a112a from master
2015-05-01 10:30:19 -04:00
Aric Coady 6b05d3a2e3 [1.8.x] Fixed #24729 -- Removed test db flush when using --keepdb. 2015-04-30 09:50:46 -04:00
Markus Holtermann bf4dc5733f [1.8.x] Fixed #24725 -- Allowed renaming of target models in ManyToMany relations
This is a regression caused by introducing rendered migration states in
1aa3e09c20 and the _meta refactoring in fb48eb0581.

Thanks to Danilo Bargen for reporting the issue and Marten Kenbeek and
Tim Graham for triaging the bug and providing the initial test case.

Backport of 63f9b633f9 from master
2015-04-30 13:46:24 +02:00
Dmitry Medvinsky 49dea4164a [1.8.x] Added translation.override() context manager to docs.
Backport of cf34ee68f0 from master
2015-04-29 21:23:22 -04:00
Tim Graham afae8ff916 [1.8.x] Fixed #24665 -- Clarified model field flag defaults.
Backport of 2b086229a2 from master
2015-04-29 20:41:07 -04:00
Baptiste Mispelon d5fb31da17 [1.8.x] Used full variable names instead of abbreviation in examples
Thanks to Andrew Ingram for the report.
Backport of 683ece0ec8 from master.
2015-04-29 17:24:03 +02:00
Mounir ec23572f12 [1.8.x] Fixed typo in docs/topics/i18n/translation.txt
Backport of 25b52d04f6 from master
2015-04-28 12:53:38 -04:00
Aric Coady b67bd1b483 [1.8.x] Fixed #24719 -- Restored the ability to use interators as queryset related object filters.
Backport of 9c2d8cde77 from master
2015-04-28 11:00:58 -04:00
Tim Graham 8fa763a983 [1.8.x] Fixed #24704 -- Clarified system check interaction with runserver.
Backport of 0f2e82b9ec from master
2015-04-25 15:06:45 -04:00
Markus Holtermann 419f296259 [1.8.x] Fixed #24701 -- Converted model manager names to unicode in migrations
Thanks to Reto Aebersold for reporting the issue and Tim Graham and
Claude Paroz for the review.

Backport of faad6070ee from master
2015-04-25 18:18:40 +02:00
Adam Zapletal fc342bff94 [1.8.x] Fixed a typo and formatting consistency in testing tools docs
I changed "appears" to "appear" and emphasized the word "not" to match
the rest of the document.

Backport of 0cf7477ed8 from master
2015-04-25 12:24:54 +02:00
Nik Nyby 9e647ce86f [1.8.x] Added missing comma in LocMemCache example.
Backport of 9d6914da66 from master
2015-04-24 20:29:25 -04:00
Marcus Pennington 2a334d7985 [1.8.x] Fixed #24700 -- Added dash to slug regex in http docs
Backport of 269a5dbdd3 from master
2015-04-24 13:10:51 -04:00
Nicolas Noé 61e902c4c4 [1.8.x] Fixed #24656 -- Added missing imports to query expressions doc.
Backport of 37682368a6 from master
2015-04-24 10:55:35 -04:00
Daniel Harding 911e09833b [1.8.x] Updated startproject MIDDLEWARE_CLASSES in docs.
Backport of ad31bc0565 from master
2015-04-24 09:34:19 -04:00
Alasdair Nicol 415a65fc0c [1.8.x] Fixed #24695 -- Tidied up a couple of regexes in the CBV docs
Thanks datakid for the report

Backport of b9e972b961 from master
2015-04-24 09:23:59 -04:00
Tim Graham fa49b99e31 [1.8.x] Documented INSTALLED_APPS requirement for HStoreField.
Backport of 618bc4e653 from master
2015-04-24 08:27:09 -04:00
Richard Eames fe533fc537 [1.8.x] Fixed #24613 -- Added example to QuerySet.defer() documentation
Backport of dd99f57710 from master
2015-04-22 19:19:17 -04:00
Tim Graham 322b9c90aa [1.8.x] Fixed #24684 -- Typo in docs/topics/forms/modelforms.txt
Backport of 1418f75304 from master
2015-04-22 09:31:43 -04:00
Tim Graham 0778f4dd82 [1.8.x] Clarified "AbstractUser.last_login allows null values" in 1.8 release notes.
Backport of 27b92228a969941d8fc0d04a894f436c0e9120c7 from master
2015-04-22 08:48:12 -04:00
Claude Paroz 99bf9085a3 [1.8.x] Fixed #24672 -- Clarified note about installing postgis_topology
Thanks Serhiy Zahoriya for the suggestion and Tim Graham for the
review.
Backport of 6e8cb75e3e from master.
2015-04-21 17:57:36 +02:00
Steve Hiemstra 2329ca969f [1.8.x] Fixed #24682 -- Corrected a few generic editing view links
Backport of 258d81acbe from master
2015-04-21 10:27:10 -04:00
Markus Holtermann 0cacb8f8ba [1.8.x] Fixed #24573 -- Considered new related models for reloading
Thanks tttomekkk for the report.

Backport of b93690c465 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 43f800a978 [1.8.x] Fixed #24659 -- Clarified docs of smtp.EmailBackend parameters.
Backport of ffe83d16bd from master
2015-04-20 15:47:07 -04:00
Simon Charette beb957041c [1.8.x] Fixed #24674 -- Documented the correct NullBooleanField formfield.
Thanks to knbk for the report.

Backport of 37e23c6060 from master
2015-04-20 15:19:57 -04:00
Anton 76f20c5307 [1.8.x] Fixed typo in docs/topics/class-based-views/intro.txt
Backport of f5fbddf22f from master
2015-04-20 14:11:51 -04:00
Tim Graham e02616b1b0 [1.8.x] Fixed #24668 -- Amended ModelAdmin.save_formset() example for #10284.
Thanks Carsten Fuchs.

Backport of e15c55e2bf from master
2015-04-20 10:49:56 -04:00
Neal Todd b39c970cfe [1.8.x] Amended get_all_related_objects() backwards compatible replacement.
Backport of d84f01ff08 from master
2015-04-20 09:50:31 -04:00
Marco Santamaria 1e0bf2cab9 [1.8.x] Fixed #11078 -- Removed inaccurate docs about proxy models Meta.
Backport of bae72bdd2a from master
2015-04-20 09:17:28 -04:00
Tim Graham ae47854a25 [1.8.x] Removed DateTimeQuerySet from docs.
Obsolete since refs #23867.

Backport of e9fdecf984 from master
2015-04-18 10:14:38 -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
Tim Graham f21dd827b7 [1.8.x] Fixed #24657 -- Fixed include template tag example.
Thanks pattypatpat for the report.

Backport of f47c796b52 from master
2015-04-17 07:54:56 -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
Tim Graham 9e5e4914ef [1.8.x] Fixed #24646 -- Fixed jinja2 example on Python 2.
Backport of d974c89ebb from master
2015-04-16 19:33:07 -04: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 355c5edd93 from master
2015-04-16 09:31:29 -04:00
Daniel Lindsley 1e594b257e [1.8.x] Fixed #23984 -- Added Javascript i18n documentation
This fleshes out the documentation around all of the exported
Javascript functions available from the ``javascript_catalog``
view.

Backport of 8ca9bc5ec3 from master
2015-04-16 08:19:30 -04:00
Abdulrahman Alotaibi 5678e4b93a [1.8.x] Fixed #24644 -- Added HTTP_ACCEPT to example headers list.
Backport of 62261ddd0f from master
2015-04-16 07:39:33 -04:00
Tim Graham 6e5e1a380c [1.8.x] Fixed #24645 -- Documented use of HStoreExtension.
Backport of d3bf5e7b00 from master
2015-04-16 07:25:38 -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 28e8978325 from master
2015-04-14 22:14:52 -04:00
Tim Graham 62012b071e [1.8.x] Removed docs for removed transaction APIs.
Backport of 6b8c969878 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 309142dba1

Backport of 825bb0ab08 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 0b5abb0321 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 f8e8853b51 from master
2015-04-14 11:30:21 -04:00
Tim Graham 42f9bbd9d9 [1.8.x] Fixed typos in docs/ref/templates/api.txt
Backport of c612786cf1 from master
2015-04-14 07:58:36 -04:00
Maxime Lorant e560bc2a3e [1.8.x] Fixed formatting in docs/ref/templates/builtins.txt
Backport of 6023312dde from master
2015-04-14 07:05:57 -04:00
Jay Wineinger 496800b3bf [1.8.x] Fixed #24611 -- Fixed update() crash with related UUID pk object.
Backport of 923da0274a from master
2015-04-13 12:20:41 -04:00
Afriza N. Arief 3928270495 [1.8.x] Fixed typo in docs/howto/deployment/wsgi/apache-auth.txt
Backport of b295fcd19c from master
2015-04-13 07:51:08 -04:00
Markus Holtermann 3862826fed [1.8.x] Fixed #24625 -- Prevented arbitrary file inclusion in admindocs
Thanks Tim Graham for the review.

Backport of 09595b4fc6 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
andredelorme 190afb8618 [1.8.x] Fixed typo in docs/ref/contrib/admin/index.txt
Backport of d5d92260bb from master
2015-04-09 13:44:31 -04: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
Tim Graham d11e87bff5 [1.8.x] Fixed #24602 -- Removed obsolete reference to __metaclass__ in custom model fields docs.
Thanks schinckel for the report.

Backport of 6d7784a7b9 from master
2015-04-08 08:36:41 -04:00
Tim Graham 9e87017a38 [1.8.x] Fixed #24600 -- Fixed inaccurate example in template Context docs.
Thanks pattypatpat for the report.

Backport of 3acefcefeb from master
2015-04-08 07:30:28 -04:00
lampslave e2294b453c [1.8.x] Fixed typo in docs/ref/models/expressions.txt
Backport of 800240cb1d from master
2015-04-07 13:59:20 -04:00
Tim Graham 993074d78d [1.8.x] Fixed #24429 -- Doc'ed that Django 1.8 doesn't require an integer PK for custom user models.
Backport of 981e3b9394 from master
2015-04-07 10:47:48 -04:00
Patrik Lundin b3d36c3514 [1.8.x] Specified file names for example code in docs/topics/forms/index.txt
Backport of f9c212d09a from master
2015-04-07 09:35:39 -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 0385dad073 from master
2015-04-07 14:56:33 +02:00
Marios Zindilis f5681f1cbf [1.8.x] Fixed typo in docs/intro/tutorial02.txt
Backport of 7a7c797234 from master
2015-04-07 07:41:46 -04:00
Thomas Güttler ffa5a7550d [1.8.x] Added admonition about reusable apps and AUTH_USER_PROFILE.
Backport of 566c936236 from master
2015-04-06 19:50:23 -04: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 e8e4f978dd from master
2015-04-05 20:29:27 +02:00
Tim Graham 9b815399d2 [1.8.x] Added link to download page to find supported versions.
Backport of 8c4827ec1d from master
2015-04-04 08:00:30 -04: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
Sam Thursfield 5cc0407e45 [1.8.x] Fixed #24556 -- Added reminder about HTTPS to passwords docs.
Backport of 1119063c69 from master
2015-04-03 10:55:35 -04:00
Ian Lee dcf2bbf0f0 [1.8.x] Fixed minor typo in Cryptography section of 1.8 release notes
Backport of 90c4c300a8 from master
2015-04-03 07:27:15 -04:00
Tim Graham f718691ec8 [1.8.x] Removed Django 1.6 from the Python version chart.
Backport of 147ac85613 from master
2015-04-02 14:22:29 -04:00
Baptiste Mispelon 09188b5024 [1.8.x] Fixed #24566 -- Added support for serializing timedelta
Thanks to knbk for the report.

Backport of 30a3c2f74c from master.
2015-04-02 17:41:08 +02:00
Krzysztof Gogolewski b0512db5c4 [1.8.x] Fixed typo in docs/internals/deprecation.txt 2015-04-01 19:01:44 -04:00
Aymeric Augustin ae4d21e159 [1.8.x] Pointed Jinja2 users to Babel instead of makemessages.
Backport of 8520551 from master
2015-04-01 22:37:39 +02:00
Tim Graham 0c01913d55 [1.8.x] Added stub release notes for 1.8.1.
Backport of 1b605838bf 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 61d6c5d02e from master
2015-04-01 15:31:16 -04:00
Joost Rijneveld 9e9914701a [1.8.x] Fixed typo in docs/ref/templates/builtins.txt
Backport of 48ddc66219 from master
2015-03-31 21:21:50 -04:00
Kostochko Dmitriy c2674c2103 [1.8.x] Fixed typo in docs/topics/cache.txt
Backport of d026eb6366 from master
2015-03-31 21:16:26 -04:00
Tim Graham 793ecf6db7 [1.8.x] Documented jinja2 install requirement.
Backport of 56286542db from master
2015-03-31 07:45:02 -04:00
Jorge Barata González 2bddc74b42 [1.8.x] Fixed #15590 -- Documented how the path of a FileField can be changed.
Thanks simon29 for report, and freakboy3742, floledermann,
jacob, claudep and collinanderson for discussing the task.

Backport of 931a340f1f from master
2015-03-30 10:39:14 -04:00
Christopher Luc c4e8f21a9c [1.8.x] Fixed #24281 -- Improved docs for timezone handling for auto_now and auto_now_add
Thanks djbug for the report and Aymeric Augustin and Carl Meyer for the
review.

Backport of 8119876d4a from master
2015-03-29 23:38:51 +02:00
Tim Graham a70dea2c06 [1.8.x] Fixed #24541 -- Clarified ModelFormSet's handling of initial data.
Backport of 6de3a1e2c3 from master
2015-03-28 08:59:50 -04:00
Tim Graham b0846a040e [1.8.x] Fixed syntax highlighting in docs/topics/auth/default.txt
Backport of 3e132406e3 from master
2015-03-28 07:51:37 -04:00
SaeX 6f69e77a9e [1.8.x] Fixed typo in docs/topics/forms/modelforms.txt
Backport of 19e41a9799 from master
2015-03-28 07:40:54 -04:00
Moritz Sichert 44a05a8a91 [1.8.x] Fixed #24469 -- Refined escaping of Django's form elements in non-Django templates.
Backport of 1f2abf784a from master
2015-03-27 20:01:41 -04:00
Tim Graham 6a2f46f238 [1.8.x] Fixed #24519 -- Clarified location of templates directory in tutorial 2.
Backport of 2acf9d099d from master
2015-03-27 09:58:44 -04:00
Tim Graham 17c3a26ac2 [1.8.x] Added some missing newlines in docs/ref/validators.txt.
Backport of f4cc0c40a8 from master
2015-03-25 18:32:48 -04:00
David Seddon ef61b69447 [1.8.x] Corrected typo in documentation
Backport of 0f6f80c2e7 from master
2015-03-25 13:44:13 -04:00
Tim Graham 0dc986d1c8 [1.8.x] Fixed #24361 -- Clarified docs on reconfiguring logging.
Thanks Tuttle for the report and draft patch, and Carl Meyer for
help and review.

Backport of c633667da3 from master
2015-03-24 12:26:25 -04:00
Matt Seymour 09933aef68 [1.8.x] Fixed #24501 -- Improved auth.decorators.user_passes_test() example.
Backport of fca14cd3f2 from master
2015-03-24 10:30:30 -04:00
Bas Peschier 015a9b928a [1.8.x] Fixed #13525 -- Added tests and docs for nested parameters in URL patterns.
When reversing, only outer parameters are used if captured parameters are
nested. Added tests to check the edge cases and documentation for the
behavior with an example to avoid it.

Backport of 23a5d64f40 from master
2015-03-23 08:43:58 -04:00
Iacopo Spalletti 6da4ce5365 [1.8.x] Fixed #23814 -- Pointed localflavor documentation to external package
Edited localflavor doc to point to the external package documentation,
leaving just the 'How to migrate' section in Django.

Backport of 87fed94440 from master.
2015-03-22 15:36:44 +01:00
Josh Smeaton e654123f7f Fixed #24485 -- Allowed combined expressions to set output_field 2015-03-22 17:41:12 +11:00
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
Tim Graham 5cd551409e [1.8.x] Fixed #24503 -- Added docs on LANGUAGE_CODE fallback change in 1.8.
Thanks Pakal and Claude.

Backport of 8219eabbba from master
2015-03-20 12:10:18 -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 81e1a35c36 from master
2015-03-18 19:12:46 -04:00
Tim Graham 4cc501205d [1.8.x] Updated location of database backend data_types attribute in docs.
Backport of d9a30ed190 from master
2015-03-17 20:04:30 -04:00
Tim Graham 0c92913bb0 [1.8.x] Updated links to latest version of PostGIS docs.
Backport of 53d11c6821 from master
2015-03-17 18:35:51 -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 c5c8751147 from master
2015-03-17 13:42:54 -04:00
Tim Graham 717bbd473c [1.8.x] Updated location of gis_tests in docs.
Backport of 64b9393ae2 from master
2015-03-17 11:35:41 -04:00
Josh Smeaton a0cebe82b5 [1.8.x] Refs #24485 -- Renamed some expression types
Backport of 88d798d71a from master
2015-03-17 08:40:45 -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 8758a63ddb from master
2015-03-16 19:45:55 -04:00
Preston Timmons ff71d6b8de [1.8.x] Documented Context.get() method.
Backport of 4d9414098b from master
2015-03-16 13:13:47 -04:00
Josh Smeaton 09062e9509 [1.8.x] Fixed #24486 -- Documented method to provide output_field to mixed F expressions
Backport of 820381d38b from master
2015-03-16 11:56:09 -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
HerHde 6dcbfc0700 [1.8.x] Added missing punctuation in some comments in tutorial 5.
Backport of 39573a11db from master
2015-03-16 08:24:58 -04:00
Steven Das f2db113f51 [1.8.x] Added comma to improve readability in 1.7 release notes.
Backport of 4f494ed0c6 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 ae87ad005f from master
2015-03-14 15:47:10 -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
Tim Graham 5b91802718 [1.8.x] Refs #24462 -- Emphasized that order_by() clears previous ordering.
Backport of b9d9ab23bd from master
2015-03-13 15:42:03 -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
Claude Paroz f115694547 [1.8.x] Documented gdal DataSource encoding parameter
Thanks Max Demars for the suggestion and Tim Graham for the review.
Backport of a8991b9b9f from master.
2015-03-13 16:41:37 +01: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
Ian Lee 06085024f6 [1.8.x] Added link to section in docs/howto/custom-template-tags.txt.
Backport of 56cd87a5af from master
2015-03-13 08:26:28 -04:00
Ian Lee 606e436a37 [1.8.x] Fixed typo in docs/howto/custom-template-tags.txt.
Backport of 7614efa2f9 from master
2015-03-13 08:14:30 -04:00
Ian Lee 77564c6f5a [1.8.x] Documented how to use a non-root subdirectory with mod_wsgi.
Backport of 7f8588d22e from master
2015-03-12 20:09:56 -04:00
Steven Das e1657cc37f [1.8.x] Fixed typo in docs/ref/models/fields.txt
Backport of 53bc6e2e98 from master
2015-03-12 19:16:22 -04:00
Aksel Ethem fee18ce415 [1.8.x] Fixed #24364 -- Doc'ed that ManifestStaticFileStorage shouldn't be used during testing.
Backport of b4d8b16e51 from master
2015-03-12 09:23:57 -04:00
ldrumm def39428bf [1.8.x] Fixed wrong operator in iri_to_uri() docs
Backport of 27ad12a9b8 from master
2015-03-12 13:49:07 +01: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
Sean Wang e0e2df412f [1.8.x] Fixed #24414 -- Added examples of Prefetch object usage to the docs.
Backport of a3e89f13df from master
2015-03-11 12:39:50 -04:00
Preston Timmons 2982143dac [1.8.x] Fixed typo in current_app deprecation note.
Backport of 6b605be5fe from master
2015-03-11 12:36:08 -04:00
Claude Paroz 12e199356e [1.8.x] Fixed download instructions for cities shapefile
Thanks Daniel Wiesmann for spotting the issue.
Backport of 57d42aef97 from master.
2015-03-10 19:44:27 +01:00
Claude Paroz e2816f1ff9 [1.8.x] Updated GIS docs wrt GIS test paths
Backport of 1825365152 from master.
2015-03-10 18:01:29 +01:00
Erik Romijn 846a970106 [1.8.x] Fixed #23903 -- Configured Sphinx to autogenerate django-admin manpage
Backport of f66c2bdc0f from master
2015-03-10 08:15:40 -04:00
Calvin Jeong 6e81786f92 [1.8.x] Fixed typo in docs/ref/database.txt
Backport of cefbbb9db3 from master
2015-03-10 07:12:39 -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
Floris den Hengst 9853844ed3 [1.8.x] Fixed #24432 -- Added docs for ManyToManyFields that reside in and refer to the same model.
Backport of b9b8411129 from master
2015-03-09 20:46:26 -04:00
Tim Graham ffa4ff5e8c [1.8.x] Added stub release notes for 1.7.7.
Backport of ea9157f681 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 300fdbbebb 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 fa350e2f30 from master
2015-03-09 09:31:07 -04:00
Tim Graham 83269b2935 [1.8.x] Fixed typo in docs/howto/custom-template-tags.txt
Backport of 63f2dd4ad7 from master
2015-03-09 07:06:32 -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
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 f4f0060fea from master
2015-03-07 14:15:27 +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
Aymeric Augustin 2bef57f3fb [1.8.x] Improved get_media_prefix template tag example.
Backport of 9a4a9a8a49 from master
2015-03-05 10:00:05 -05:00
Ross Brunton 72539a5f29 [1.8.x] Fixed #24379 -- Documented that remote user example disables ModelBackend.
Backport of 6b28e957df from master
2015-03-02 19:57:12 -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
Andrew Pinkham ac6bc2c090 [1.8.x] Fixed #24439 -- Removed incorrect make_object_list attributes in CBV docs.
Backport of fea45eff5a from master
2015-03-02 13:33:42 -05:00
Ian Lee ed25758556 [1.8.x] Added syntax highlighting for apache code blocks
Backport of fde4857fb8 from master
2015-03-02 12:37:07 -05:00
Alex Shaindlin 5a3b59370c [1.8.x] Improved wording in tutorial 1.
Backport of dcdef1fe2e from master
2015-02-27 17:54:27 -05:00
Tim Graham 9d6f0dce13 [1.8.x] Fixed #24359 -- Cleaned up docs/ref/exceptions.html
Backport of 2b19b3a031 from master
2015-02-27 13:51:29 -05:00
Tim Graham 31a1f96bd3 [1.8.x] Added stub release notes for 1.7.6.
Backport of 71820721a1 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 aca73737da 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 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