Commit Graph

2172 Commits

Author SHA1 Message Date
Andrew Godwin 7f63ac5a9f [1.7.x] Fixed #22496: Data migrations get transactions again! 2014-05-07 14:29:04 -07:00
Claude Paroz 79e4a189f3 [1.7.x] Updated the messages context processor docs
Refs #20610.
Backport of 7951f125e frmo master.
2014-05-06 20:39:13 +02:00
Tim Graham 2a2d7db01f [1.7.x] Fixed #1349 -- Clarified docs on serving files from STATIC/MEDIA_URL.
Backport of fb7c347f7b from master
2014-05-05 07:39:03 -04:00
Simon Charette a6ecd5dbb3 [1.7.x] Fixed #19195 -- Allow explicit ordering by a relation `_id` field.
Thanks to chrisedgemon for the report and shaib, akaariai and
timgraham for the review.

Backport of 24ec9538b7 from master
2014-04-30 14:26:39 -04:00
Mike Fogel bb5c7e4e8d [1.7.x] Fixed #22537 -- Add tests and improved docs for field subclass with choices.
Backport of 7fd1b35ed7 from master
2014-04-30 07:57:35 -04:00
Tim Graham b89bbb3c21 [1.7.x] Improved formatting and links of migration docs.
Backport of ab8d8e00c9 from master
2014-04-27 15:06:08 -04:00
Aymeric Augustin a5cc99de24 [1.7.x] Documented django.setup().
Thanks Eric Holscher and Tim Graham for the review.

Backport of 58ed387 from master
2014-04-26 22:11:04 +02:00
Aymeric Augustin 3bb0f118ca [1.7.x] Fixed #3214 -- Stopped parsing SQL with regex.
Avoided introducing a new regex-based SQL splitter in the migrations
framework, before we're bound by backwards compatibility.

Adapted this change to the legacy "initial SQL data" feature, even
though it's already deprecated, in order to facilitate the transition
to migrations.

sqlparse becomes mandatory for RunSQL on some databases (all but
PostgreSQL). There's no API to provide a single statement and tell
Django not to attempt splitting. Since we have a more robust splitting
implementation, that seems like a good tradeoff. It's easier to add a
new keyword argument later if necessary than to remove one.

Many people contributed to both tickets, thank you all, and especially
Claude for the review.

Refs #22401.

Backport of 8b5b199 from master
2014-04-26 17:46:57 +02:00
Claude Paroz e441cebce3 [1.7.x] Updated doc links to point to Python 3 documentation
Backport of 680a0f08b from master.
2014-04-26 16:03:40 +02:00
Aymeric Augustin 788fce4c91 [1.7.x] Fixed a confusing heading in applications docs.
Refs #22422.

Backport of 0315f01 from master
2014-04-25 17:40:33 +02:00
Víðir Valberg Guðmundsson bde1bc6672 [1.7.x] Fixed #22422 -- Moved information about the application loading process to refs/applications.txt.
Backport of deb561bbe2 from master
2014-04-25 10:12:55 -04:00
Moayad Mardini ae15356061 [1.7.x] Fixed #22493 - Added warnings to raw() and extra() docs about SQL injection
Thanks Erik Romijn for the suggestion.

Backport of 3776926cfe from master
2014-04-25 09:56:04 -04:00
Malcolm Box 658710be00 [1.7.x] Fixed #22516 -- Added versionchanged annotation for STATIC_ROOT default value. 2014-04-25 09:36:18 -04:00
Marti Raudsepp ba1728dd9b [1.7.x] Various documentation typo/spelling fixes
Errors detected by Topy (https://github.com/intgr/topy), all changes
verified by hand.

Backport of 11d453bcad from master
2014-04-22 20:10:58 -04:00
Erik Romijn 34526c2f56 [1.7.x] Fixed queries that may return unexpected results on MySQL due to typecasting.
This is a security fix. Disclosure will follow shortly.

Backport of 75c0d4ea3a from master
2014-04-21 18:29:39 -04:00
Matt Lauber 0bd913a19c [1.7.x] Corrected the section identifier for MySQL unicode reference.
Backport of b2514c02e1 from master
2014-04-21 13:20:46 -04:00
Tim Graham b06e45bbf6 [1.7.x] Moved RemoteUserBackend documentation to reference guide.
Backport of 26d118c3fe from master
2014-04-18 16:11:04 -04:00
Moayad Mardini b1e7dd445b [1.7.x] Fixed #22458 -- Added a note about MySQL utf8_unicode_ci collation
Thanks tobami at gmail.com for the report.

Backport of 11ac50b18e from master
2014-04-18 15:11:10 -04:00
Tim Graham a9ad081899 [1.7.x] Fixed #22473 -- Emphasized that Model.clean() is not called from Model.save().
Backport of b43bbd6d39 from master
2014-04-18 15:03:27 -04:00
Claude Paroz edaff9b0df [1.7.x] Confirmed support for PostGIS 2.1 and GDAL 1.10
Refs #22456.
Backport of 3cea917e3e from master.
2014-04-17 21:26:49 +02:00
Ben Davis 8c1d8a6215 [1.7.x] Fixed #22220 -- Added more examples to reverse() documention.
Thanks EvilDMP for the suggestions.

Backport of 030dd4f72c from master
2014-04-16 20:31:01 -04:00
Tim Graham c064971e6b [1.7.x] Fixed spelling errors in documentation.
Backport of b5ce21accb from master
2014-04-16 09:39:25 -04:00
Tim Graham cb7ee25462 [1.7.x] Added RemoteUserMiddleware to middleware reference page.
Backport of 465980d070 from master
2014-04-16 07:23:00 -04:00
Andrew Godwin a195ec847e [1.7.x] Improve migrations/schema docs 2014-04-14 18:09:48 -04:00
arachnegl f004374f8f [1.7.x] Fixed #22398 -- Added detail about callable in KEY_FUNCTION docs
Backport of 8da86fd19b from master
2014-04-13 19:14:16 -04:00
Tim Graham ae78227de3 [1.7.x] Fixed #21353 -- Noted that description is ignored for TabularInlines.
Thanks nofinator for the report.

Backport of d5031ecf88 from master
2014-04-10 13:33:28 -04:00
Tim Graham ddd25b280f [1.7.x] Fixed #22194 -- Added --list-tags option to check command.
Thanks Elvard for the patch.

Backport of 395d75ea6b from master
2014-04-10 09:44:43 -04:00
Shai Berger 941f947bfd [1.7.x] Documentation fixes for the select_for_update change.
Refs #22343; thanks Tim Graham for the fixes.

Backport of 59b1d30 from master
2014-04-10 03:43:05 +03:00
Shai Berger 3a9a4570ef [1.7.x] Fixed #22343 -- Disallowed select_for_update in autocommit mode
The ticket was originally about two failing tests, which are
fixed by putting their queries in transactions.

Thanks Tim Graham for the report, Aymeric Augustin for the fix,
and Simon Charette, Tim Graham & Loïc Bistuer for review.

Backport of b990df1d63 from master
2014-04-10 01:44:30 +03:00
ejstronge 763b1d55e2 [1.7.x] Fixed small typo in django-admin.txt
The word 'by' seemed to be missing from the first line of the compilemessages command.

Backport of 5ca522b9ed from master
2014-04-09 07:13:37 -04:00
Anubhav Joshi d9c7d9eb6e [1.7.x] Fixed #9535 -- Added a reference guide for file upload classes.
Backport of c8c2b8a638 from master
2014-04-08 10:09:01 -04:00
Anubhav Joshi 61b7fcf478 [1.7.x] Fixed #22405 -- Fixed string error in models/queries docs.
Backport of 36de29200e from master.
2014-04-08 13:34:37 +02:00
Yin Jifeng c148d8e730 [1.7.x] Added missing request parameter to get_current_site().
Backport of d6c9bdd825 from master
2014-04-07 09:57:04 -04:00
Tim Graham 38679254bf [1.7.x] Fixed #22216 -- Added Form.non_field_errors to form API doc.
Backport of d2f4553d70 from master
2014-04-05 18:17:13 -04:00
Tim Graham 5891fd3f89 [1.7.x] Fixed #21649 -- Added optional invalidation of sessions when user password changes.
Thanks Paul McMillan, Aymeric Augustin, and Erik Romijn for reviews.

Backport of fd23c06023 from master
2014-04-05 13:01:03 -04:00
Vishal Lal 4ad4a236de [1.7.x] Fixed #22380 -- Missing SECRET_KEY variable in sample settings file for testing
Backport of 8f621b83e9 from master.
2014-04-04 09:48:56 +02:00
Vishal Lal 28a686a0b7 [1.7.x] Fixed #22372 -- Improved description of WizardView.get_context_data().
Thanks simon29 for the report.

Backport of a8e2ec0e82 from master
2014-04-03 08:27:57 -04:00
Vishal Lal 36d1e3725f [1.7.x] Fixed #22347 -- Unified FileSystemStorage documentation.
Thanks nliberg for the report.

Backport of ca93f02c62 from master
2014-04-02 13:01:03 -04:00
Tim Graham 07c42cee7f [1.7.x] Replaced urllib/urlparse imports with from django.utils.six.moves.
Backport of 981b864fbd from master
2014-03-31 07:55:25 -04:00
Tim Martin e2e773c04a [1.7.x] Fixed #21941 -- Documented the kwargs param of django.conf.urls.url().
Thanks cjerdonek for the report.

Backport of a779757706 from master
2014-03-27 07:02:02 -04:00
Tim Graham 994274ea83 [1.7.x] Fixed #22029 -- Removed obsolete advice on registering migrate/syncdb signal handlers.
All signals should now be registered in AppConfig.ready().

Thanks un33k for the report.

Backport of 5233b36693 from master
2014-03-26 10:41:45 -04:00
Tim Graham 7eaf329ad3 [1.7.x] Fixed #22322 -- Fixed incorrect explanation of what managed=False does.
refs #14305.

Thanks Adrian Klaver for the report.

Backport of 9b7ba8af1b from master
2014-03-25 14:03:02 -04:00
Adam Kaliński eb1600e9d1 [1.7.x] Fixed #22048 - Enhanced docs to cover nonexistent one-to-one relationships.
Thanks EvilDMP for the suggestion.

Backport of ec08d62a20 from master
2014-03-24 09:45:50 -04:00
Claude Paroz e1a6a3024f [1.7.x] Fixed #22317 -- Fixed documented handler400 default value
Backport of 3f7615cddc from master.
2014-03-23 21:20:19 +01:00
Claude Paroz 80f08dbdbc [1.7.x] Improved strip_tags and clarified documentation
The fact that strip_tags cannot guarantee to really strip all
non-safe HTML content was not clear enough. Also see:
https://www.djangoproject.com/weblog/2014/mar/22/strip-tags-advisory/
Backport of 6ca6c36f82 from master.
2014-03-22 11:01:14 +01:00
Aymeric Augustin 60d2213d43 [1.7.x] Small doc changes missed in 66076268.
Partial backport of 253e8ac2 from master.
2014-03-21 22:09:57 +01:00
Thomas Schreiber 79989263a2 [1.7.x] Fixed typos in docs (django.contrib.site)
Backport of 907ac64641 from master.
2014-03-21 20:02:03 +01:00
Tim Graham 563d6a6bba [1.7.x] Replaced an instance of PIL with Pillow in the docs.
Done in 4965a77407 on master.
2014-03-21 11:23:59 -04:00
Dejan Noveski b74ec85c1d [1.7.x] Fixed #22255 -- Added support for specifying re flags in RegexValidator
Backport of 4d0c5f6142 from master.
2014-03-21 11:18:26 +01:00
Bryan Helmig cc8a800d0c [1.7.x] Fixed minor syntax error in Queryset docs
Backport of f2eea960e0 from master.
2014-03-21 11:14:57 +01:00