1
0
mirror of https://github.com/django/django.git synced 2025-03-13 10:50:55 +00:00

1864 Commits

Author SHA1 Message Date
Tim Graham
e7649789ed [1.6.x] Fixed #21908 -- Added example usage for ModelAdmin.get_inline_instances().
Thanks matt at schinckel.net for the suggestion.

Backport of 5a4f1298cf from master
2014-03-03 10:42:32 -05:00
Baptiste Mispelon
4aaea2921d [1.6.x] Fixed some typos in the documentation.
Thanks to Rodolfo Carvalho and Piotr Kasprzyk
for the patch.

Partial backport of ea4da8e63c314b4f7cbcb4dd06eef466c1e872ed from master.
2014-03-02 17:21:10 +01:00
navneet suman
f2b513c9e8 [1.6.x] Fixed #22145 -- Clarified docs on Field.blank and Field.null options.
Thanks skipjack at peru.com for the suggestion.

Backport of 3390550f6f from master
2014-02-25 21:01:02 -05:00
Alasdair Nicol
39b099bdd2 [1.6.x] Fixed #22112 -- Added RedirectView.pattern_name to CBV flattened index
Also moved accessor method get_redirect_url next to its attribute url
for consistency with the other views.

Thanks nikunj.sg for the report

Backport of 462edd22e5577ff9ee6477f7572b571700d1a2aa from master.
2014-02-23 13:58:08 +01:00
Marcin Sokół
98070b94a9 [1.6.x] Fixed #21902 -- Documented search order for list_display.
Backport of 09b725f51bbfa0f01b27ee2d718889926d409519 from master.
2014-02-23 13:54:56 +01:00
Jochem Oosterveen
882f2a5b81 [1.6.x] Fixed #22092 -- Documented ResolverMatch.view_name
Backport of 271929dd9d3aa5184cbb13d79b3651ac32e640ea from master.
2014-02-23 13:54:17 +01:00
Marcin Sokół
79cc1fa58d [1.6.x] Fixed #22113 -- changed object_name to model_name in CBV docs.
Thanks to trac user nikunj.sg for the report.

Backport of b8874084868080baff29ac3453d20a845fd1568c from master.
2014-02-23 13:52:45 +01:00
Baptiste Mispelon
a36513c2b4 [1.6.x] Fixed #21881 -- Clarify behavior of {% ssi %} template tag.
When using the `parsed` option, {% ssi %} has the same limitation
as {% include %}, namely that the rendering of the included
template is done separately.

Thanks to trac user nagyv for the report and to alextreme for
the patch.

Backport of 072fb923e1b2e39e85a4ed4569ee7cd94f26a0bb from master.
2014-02-23 13:52:14 +01:00
Alex de Landgraaf
23cbfc9a25 [1.6.x] Fixed #22063 -- Added reference to NoReverseMatch from the reverse() documentation
Backport of b645be80e99709c8b1f9b3d1c26e99e22fdca08b from master.
2014-02-23 13:51:42 +01:00
Zbigniew Siciarz
14366ed33e [1.6.x] Fixed #22013 -- Documented difference between SERVER_EMAIL and DEFAULT_FROM_EMAIL.
Backport of 44814e78cc from master
2014-02-15 13:30:13 -05:00
Baptiste Mispelon
dbb9819360 [1.6.x] Fixed inaccuracies in generic mixins documentation.
Backport of a5391db76a20c8bb35a7bc0192870fddf747c54c from master.
2014-02-09 11:00:25 +00:00
Ian Foote
05cef1939e [1.6.x] Fix typo CRSF -> CSRF
Backport of af64f829d7 from master
2014-01-29 12:08:42 -05:00
Tim Graham
c91e772b3a [1.6.x] Fixed some punctuation; thanks Chris Jerdonek.
Backport of 81830ce34f from master
2014-01-23 09:05:09 -05:00
Baptiste Mispelon
6bf05c0267 [1.6.x] Always use parentheses when documenting a method with no arguments.
Backport of 05d36dc06e6d767bb28993c65a54b703f319a386 from master.
2014-01-22 23:00:06 +01:00
Baptiste Mispelon
6bca149af5 [1.6.x] Don't show self in the list of arguments of a method.
This is consistent with Python's official documentation
and it's a sphinx recommendation too[1].

[1] http://sphinx-doc.org/markup/desc.html#dir-method

Refs #21855.

Backport of 79e1d6ebd70898d514a44b85648e3d24104c4243 from master.
2014-01-22 22:59:55 +01:00
Tim Graham
a4c32d70c2 [1.6.x] Fixed #21529 -- Noted that {% url %} encodes its output (refs #13260).
Backport of dfc092622e from master
2014-01-22 10:45:10 -05:00
Tim Graham
85149a8b7f [1.6.x] Fixed #18942 -- Clarified usage of {% get_static_prefix %}.
Thanks Aymeric for the suggestion.

Backport of bc7668eb51 from master
2014-01-17 16:06:54 -05:00
Tim Graham
4f058655d0 [1.6.x] Fixed #13116 -- Described scope of variables created by {% url ... as var %} syntax.
Thanks leif_p for the suggestion.

Backport of 4a5aac47a6 from master
2014-01-17 14:52:02 -05:00
Tim Graham
b1cc1633e0 [1.6.x] Fixed #18285 -- Documented that bulk_create doesn't work with M2M relationships.
Backport of 9173d2cb74 from master
2014-01-16 20:49:06 -05:00
Tim Graham
363b8c690a [1.6.x] Fixed #21768 -- Corrected TemplateView context section.
Thanks nedbatchelder for the report and claudep for the patch.

Backport of c05b2f58e7 from master
2014-01-16 07:59:15 -05:00
Kevin Wood
deefdc8e60 [1.6.x] Fixed typo in storage docs
Backport of 82f466b571 from master
2014-01-15 18:44:47 -05:00
Vajrasky Kok
0a4e36c68f [1.6.x] Fixed #21319 -- Added documentation for the Form.fields attribute.
Thanks pydanny for the report. Also, added documentation about
base_fields attribute and its difference with fields attribute.

Backport of ea83102d0f from master
2014-01-02 19:45:22 -05:00
Nathan Smith
8b1de986f6 [1.6.x] Fixed minor typos.
Backport of 44d40ba521 from master
2014-01-02 16:22:21 -05:00
Loic Bistuer
3fd16e6261 [1.6.x] Fixed #21581 -- Fixed a number of issues with collectstatic.
When STATIC_ROOT wasn't set, collectstatic --clear would delete
every files within the current directory and its descendants.

This patch makes the following changes:

Prevent collectstatic from running if STATIC_ROOT isn't set.

Fixed an issue that prevented collectstatic from displaying the
destination directory.

Changed the warning header to notify when the command is run
in dry-run mode.

Backport of 4befb3015c from master
2013-12-31 15:04:22 -05:00
Tim Graham
51d6a7d53e [1.6.x] Fixed #21710 -- Documented User.get_short_name()
Thanks Keryn Knight for the report.

Backport of 0150830687 from master
2013-12-30 17:46:16 -05:00
Claude Paroz
2d08390d70 [1.6.x] Fixed #21618 -- Added hints about openlayers.js hosting
Thanks kz26 for the report and Tim Graham for the excellent
review.
Backport of b7a7baa554 from master.
2013-12-28 11:11:58 +01:00
Tim Graham
62f282a265 [1.6.x] Fixed #21629 -- Added instructions for loading MySQL time zone definitions.
Thanks Aymeric for the suggestion.

Backport of d8d83777eb from master
2013-12-26 15:50:49 -05:00
Unai Zalakain
54b04cc8e6 [1.6.x] Fixed #21213 -- Added docs for Django's mailing lists.
Added docs/internals/mailing-lists.txt documenting the use of django's
mailing lists. All references across docs changed to point to this page.

The referencing makes use of substitution because there's no way to make
a :ref: link in a non-inline fashion in Sphinx. It also makes use of
rst_epilog Sphinx conf for making this substitutions across all the
docs.

Backport of 3895d8899d from master
2013-12-19 09:24:13 -05:00
Tim Graham
438f9edff6 [1.6.x] Fixed #21585 -- Updated some links to 3rd party database projects.
Thanks graeme.perrow at sap.com for the original report.

Backport of 23d9f517dc from master
2013-12-18 18:50:36 -05:00
Kevin Christopher Henry
dd7e2925dd [1.6.x] Fixed #21632 -- Docs: Removed example with callable as query parameter
Using callables as query parameters is undocumented and not working,
so this changes an example from the ForeignKey.limit_choices_to
documentation that uses it.

Backport of d34c8c338a from master
2013-12-18 12:37:56 -05:00
Baptiste Mispelon
e888760854 [1.6.x] Added some internal links to render_to_string documentation.
Backport of 1689744aee1f13b2f4e270ce63cea143eb6d868e from master.
2013-12-15 23:03:26 +01:00
Tim Graham
6a36b71fc2 [1.6.x] Fixed typo in docs/ref/models/fields.txt
Backport of dfc95d240d from master.
2013-12-15 10:51:58 -05:00
Claude Paroz
ef9832f148 [1.6.x] Updated a bunch of hyperlinks in documentation
Backport of 626bdf648 from master.
2013-12-08 18:48:30 +01:00
Tim Graham
3f8583a2c8 [1.6.x] Added a warning regarding risks in serving user uploaded media.
Thanks Preston Holmes for the draft text.

Backport of df6760f12c from master
2013-12-02 13:49:47 -05:00
Baptiste Mispelon
02f9e90fdf [1.6.x] Fixed #21515 -- Corrected example of template.Context in documentation.
Thanks to trac user oubiga for the report.

Backport of 077af42139db84d88f293ab5eadc989a9169dce1 from master.
2013-11-28 00:59:00 +01:00
Ludwik Trammer
593ec42ad1 [1.6.x] Fixed #21507 -- Corrected default widget information for FileField
Backport of 70e61310d6 from master
2013-11-25 08:27:27 -05:00
Tim Graham
df18cc632c [1.6.x] Fixed typo in previous commit; refs #21490.
Backport of 03bc0a8ac5 from master
2013-11-24 16:29:10 -05:00
Tim Graham
af65860c5b [1.6.x] Fixed #21490 -- Fixed custom admin URL reverse example.
Thanks glarrain for the report.

Backport of bfe7377adb from master
2013-11-24 15:19:34 -05:00
Ramiro Morales
8750296918 [1.6.x] Fixed #21488 -- Multiple locales treatment in i18n commands.
Removed multiple locales separated by commas variation (that wasn't
working as documented) in favor of simply allowing use of the
``--locale``/``-l`` options more than once for ``makemessages`` and
``compilemessages``.

Thanks Romain Beylerian for the report and Claude, Simon for their help.
2013-11-23 11:02:30 -03:00
Markus Amalthea Magnuson
47abfa237e [1.6.x] Fixed #21427 -- Clearly state integer field value ranges in docs
Added an explicit mention of the exact value ranges for integer type
fields that are safe in all databases supported by Django. Also, put
all value numbers inside double ticks.

Backport of b6a6cf4ab791b092e18ab16537aa88dd7ae9bc36 from master.
2013-11-21 14:17:58 +01:00
Rocky Meza
ac2ef4af7c [1.6.x] Fixed the base class note in the Date Views docs.
Backport of 42197e31aa from master
2013-11-19 10:25:48 -05:00
Baptiste Mispelon
4c9362d81f [1.6.x] Added more internal links in the management command documentation.
Backport of bc0413cbc6fd472371e907f17303c5ddcc9b4642 from master.
2013-11-18 19:28:29 +01:00
Dominic Rodger
a9c50fccf2 [1.6.x] Fixed #20852 - Fixed incorrectly generated left quotes in docs.
Sphinx generates left single quotes for apostrophes after
code markup, when right single quotes are required. The
easiest way to fix this is just by inserting the unicode
character for a right single quote.

Instances of the problem were found by looking for
">‘" in the generated HTML.

Backport of c33d1ca1d98003de29cdecb6080b52c5c52139bd from master.
2013-11-18 16:03:00 +01:00
Baptiste Mispelon
b6acc4f749 [1.6.x] Removed a mention of Form._errors from the documentation.
Also removed a sentence that was incorrect: raising a
`ValidationError` inside `Form.clean` doesn't clear the
`cleaned_data` attribute.

Thanks to loic84 and timograham for the review.

Backport of 9aa6d4bdb6618ba4f17acc7b7c0d1462d6cbc718 and
0048ed77c7016a03aed6dbc255a6372f3df2ccd5 from master.
2013-11-12 20:54:37 +01:00
Bernardo Pires
4aed1ee339 [1.6.x] Fixed #21372 -- Corrected docs regarding translating LANGUAGES.
Corrected LANGUAGES documentation on how to translate language
names. Now using django.utils.translation.ugettext_lazy instead
of a dummy gettext() function.

Thanks to Salvatore for the report.

Backport of 8bc350b38516d8c3a14aed113dd3402b9375b75c from master.
2013-11-10 00:02:13 +01:00
Baptiste Mispelon
86e72f5ba9 [1.6.x] Fixed versionadded misuse in the admin documentation.
Backport of c82e850eed2eb3957ed792908b73622ebd3034a7 from master.
2013-11-09 15:10:14 +01:00
glts
d4b1724b36 [1.6.x] Added missing parameter in npgettext_lazy docs
Backport of 413307fe35 from master
2013-11-08 18:35:43 -05:00
Baptiste Mispelon
6c34e18bd4 [1.6.x] Fixed #21396: Document backwards-incompatible change in RedirectView.get_redirect_url.
Thanks to Tim for the review.

Backport of f2e0266be766b0b6149377b90ae3ddc41c91c3fb from master.
2013-11-08 10:55:11 +01:00
Tim Graham
33503c57ef [1.6.x] Fixed spelling ("dependant" -> "dependent")
Dependent means reliant on.
A dependant is a person like a child or spouse.

Thanks Andrew Wilcox for the report.

Backport of 090315f5df from master
2013-11-01 21:32:05 -04:00
Claude Paroz
3f1b20841a [1.6.x] Fixed #21364 -- Specified InnoDB full-text support from MySQL 5.6.4 on
Thanks thevlad at gmail.com for the report.
Backport of 89116cf24a from master.
2013-11-01 11:02:11 +01:00