1
0
mirror of https://github.com/django/django.git synced 2025-01-26 18:19:18 +00:00

3310 Commits

Author SHA1 Message Date
petedmarsh
5cc6190788 [1.10.x] Fixed #26899 -- Documented why RawSQL params is a required parameter.
Backport of 7bf3ba0d0c700670d13d7683eec7bd3eb3d4dd1f from master
2016-07-21 10:29:06 -04:00
Tim Graham
c8d166241f [1.10.x] Fixed #26918 -- Clarified source of pre/post_save update_fields argument.
Backport of a05d86a69a7f11f00032b8d7846932b139c670e0 from master
2016-07-21 10:07:24 -04:00
Tim Graham
6646a396cc [1.10.x] Fixed inconsistent indentation in docs/ref/models/options.txt
Backport of ba246bd5fe3c3c392cb0a56648542dbca435d107 from master
2016-07-15 13:43:05 -04:00
Tim Graham
5c56ce7a3f [1.10.x] Reverted "Fixed #25388 -- Added an option to allow disabling of migrations during test database creation"
This reverts commit 157d7f1f1de4705daddebb77f21bd7097a74513d since it
disables migrations all the time, not just during tests.

Backport of 944e66cb1db6614ef0644b9030dd1d75e950767c from master
2016-07-14 09:22:06 -04:00
Tom Carrick
8c385b7697 [1.10.x] Fixed typos in docs/ref/contrib/postgres/search.txt
Backport of 46e20104609bbf78500c2bde10f75f51585ddf11 from master
2016-07-14 07:53:00 -04:00
Simon Charette
cf6f0e9978 [1.10.x] Refs #25774 -- Adjusted datetime database function docs field names.
Backport of 90468079ec6f72a1b8b6a908d81d3201a3204b24 from master
2016-07-08 12:37:24 -04:00
Sean Marlow
fda151e512 [1.10.x] Fixed #26837 -- Documented ModelMultipleChoiceField.to_field_name
Backport of 8b9e16ec858c23cb65ea5de95f65a71b31521841 from master
2016-07-08 11:30:26 -04:00
Mathieu Richardoz
d58a27c349 Fixed a typo in docs/ref/contrib/postgres/search.txt. 2016-07-07 07:05:49 -04:00
Tim Graham
48a570164e [1.10.x] Fixed capitalization of "URL pattern".
Backport of 415ae960bb9f1bdae798023fdce3247d2c938eec from master
2016-07-06 15:31:44 -04:00
Romain Garrigues
8976d08edb [1.10.x] Fixed #25461 -- Corrected meta API code examples to account for MTI.
In the case of multiple-table inheritance models, get_all_related_objects() and
get_all_related_objects_with_model() don't return the auto-created
OneToOneField, but the new examples didn't account for this.

Backport of 8be84e2ac42b2556fd6fa07794b3708b143ef341 from master
2016-07-06 09:28:51 -04:00
Tim Graham
9687004538 [1.10.x] Fixed #26002 -- Explained ModelAdmin.get_search_results() example.
Backport of c9d0a0f7f47c8496a9d8b0cfda94e2ef118d9ab3 from master
2016-06-30 09:00:35 -04:00
Tsering
be03ce25c4 [1.10.x] Refs #23386 -- Documented that F() expressions are applied on each model.save()
Backport of fc4b4fd5850989458d6e54de12a29b2e40e94ce8 from master
2016-06-28 16:27:36 -04:00
Camilo Nova
87584a0af1 [1.10.x] Used strict comparison in docs/ref/csrf.txt's JavaScript.
Backport of 222e1334bf29605925eefa45ff107ca1155e93c0 from master
2016-06-28 12:52:05 -04:00
Anderson Resende
b752eae700 [1.10.x] Fixed #26806 -- Triple quoted docstrings in docs/ref/forms/validation.txt.
Backport of 2032bcf18280a875a59a39cf85c226da0a310d11 from master
2016-06-27 09:07:18 -04:00
Tim Graham
45a650777e [1.10.x] Fixed #26787 -- Documented deleting and reloading of model instance fields.
Thanks Julien Hartmann for the report.

Backport of 20d1cb33c2ec1242e16c49deb88e8c70517b2d1a from master
2016-06-21 15:25:16 -04:00
Andrew Nester
7a3cc2957f [1.10.x] Fixed #26776 -- Documented url()'s view argument.
Backport of a12826bba7a6d75862f99ae5cd48c4c1854208b8 from master
2016-06-20 11:57:58 -04:00
Ville Skyttä
efe9874371 [1.10.x] Fixed broken links in docs and comments.
Backport of 96f97691ad5e1483263cea3bb4e4021b4c8dcc41 from master
2016-06-15 21:20:38 -04:00
Sergey Fedoseev
f9b3a6a76f [1.10.x] Refs #14030 -- Updated docs per "Improved expression support for python values."
Complements e2d6e14662d780383e18066a3182155fb5b7747b.

Backport of db613f4f1250971942f766dcf97c22234a3aa14e from master
2016-06-15 10:35:34 -04:00
Tim Graham
539ccfbf62 [1.10.x] Removed nonexistent attribute in docs/ref/contrib/admin/index.txt
Backport of abec15ad810d04b59ca745cacf91802c7147c8e6 from master
2016-06-15 08:32:08 -04:00
Ville Skyttä
61bcf04132 [1.10.x] Fixed #26754 -- Documented django.template.context_processors.tz
Backport of 7003174fec188bd5a21e3d62bd5e13e80f6f329c from master
2016-06-14 11:58:50 +02:00
Tommy Beadle
b04e6ec7cb [1.10.x] Fixed #26704 -- Documented DjangoJSONEncoder.
Backport of 729b9452b19b031d3817821128a115d5b2d5caed from master
2016-06-07 14:58:30 -04:00
Jon Dufresne
32ab8c0340 [1.10.x] Added some links to the TypedChoiceField docs.
Backport of 31a9a965a36c5ce923692e5dac430ea6a1cbf2a0 from master
2016-06-06 12:12:25 -04:00
B. J. Potter
926529d618 [1.10.x] Fixed #26596 -- Added Jinja2 {{ csrf_input }} documentation.
Backport of 9c53facc45908bc0593de194a60bc75e5d34a48e from master
2016-06-03 15:25:50 -04:00
B. J. Potter
2e7ec15f53 [1.10.x] Added syntax highlighting to CSRF example.
Backport of 261738990e07a039b39aab0664eea71f226cd381 from master
2016-06-03 15:19:23 -04:00
Ed Henderson
521772ff07 [1.10.x] Fixed #26021 -- Applied hanging indentation to docs.
Backport of 4a4d7f980e2a66756e1e424f7648dcd28ff765b7 from master
2016-06-03 11:49:24 -04:00
Holly Becker
697ed75de5 [1.10.x] Refs #26628 -- Documented CSRF failure logging.
Backport of ff9198ee0f1de24a5b2861d28849344e7a5714c4 from master
2016-06-02 20:44:13 -04:00
Chad Shryock
cd4246aab1 [1.10.x] Fixed #26526 -- Documented QuerySet.latest()'s dependency on database ordering.
Backport of e6c5e68acd4bff90e371fd148ed6976e147692ad from master
2016-06-02 19:42:57 -04:00
Tim Graham
bad894d5b8 [1.10.x] Fixed #26695 -- Clarified return value of View.options().
Thanks mmoreaux and DheerendraRathor.

Backport of db2a6b6bfa9881725e70ca579a17e942a97a4df8 from master
2016-06-01 08:29:28 -04:00
Florian Apolloner
7bc199aa64 [1.10.x] Fixed a typo in the docs.
Backport of 62e4f8ec435a4b600c8efb071201070a2443477e from master
2016-05-31 10:59:25 -04:00
Ketan Bhatt
c2dde7561a [1.10.x] Fixed #26679 -- Documented which methods are disabled on RelatedManager if there's an intermediate table.
Backport of 59523c06fe482232dad9dc63ef0baab63418196d from master
2016-05-31 07:15:15 -04:00
Christophe Pettus
3e1c8fc4c0 [1.10.x] Fixed #26684 -- Removed incorrect index example in docs/ref/contrib/postgres/search.txt.
Backport of 92107522ed3568740ec7c3597db50b5c3a6e84d3 from master
2016-05-30 14:21:48 -04:00
Tim Graham
e140139724 [1.10.x] Confirmed support for PostGIS 2.2.
Backport of cbea13f3447c3673a3cf25dab93f1dbc685ccd44 from master
2016-05-28 20:48:55 -04:00
Nick Smith
06db2b88cf [1.10.x] Fixed typo in docs/ref/models/querysets.txt
Backport of 838386815f53fe2cba1b42c498420881660079d4 from master
2016-05-27 09:13:12 -04:00
Alex Hill
779bb82f51 Fixed #26421 -- Refactored ModelSignal to use Apps.lazy_model_operation() 2016-05-19 21:33:36 -04:00
Alex Hill
2ff7ef15b0 Refs #26421 -- Refactored Apps.lazy_model_operation() for better checks and tests 2016-05-19 21:33:36 -04:00
Shai Berger
5112e65ef2 Fixed #20869 -- made CSRF tokens change every request by salt-encrypting them
Note that the cookie is not changed every request, just the token retrieved
by the `get_token()` method (used also by the `{% csrf_token %}` tag).

While at it, made token validation strict: Where, before, any length was
accepted and non-ASCII chars were ignored, we now treat anything other than
`[A-Za-z0-9]{64}` as invalid (except for 32-char tokens, which, for
backwards-compatibility, are accepted and replaced by 64-char ones).

Thanks Trac user patrys for reporting, github user adambrenecki
for initial patch, Tim Graham for help, and Curtis Maloney,
Collin Anderson, Florian Apolloner, Markus Holtermann & Jon Dufresne
for reviews.
2016-05-19 05:02:19 +03:00
Tim Graham
6d9c5d46e6 Fixed #26636 -- Fixed typo in docs/ref/request-response.txt 2016-05-18 21:39:08 -04:00
Marti Raudsepp
b9ae662c97 Fixed #26620 -- Made Model.refresh_from_db() fail when passed unknown kwargs. 2016-05-18 09:27:23 -04:00
Josh Smeaton
2a4af0ea43 Fixed #25774 -- Refactor datetime expressions into public API 2016-05-18 20:14:58 +10:00
Tim Graham
354acd04af Refs #26601 -- Added a warning if both MIDDLEWARE AND MIDDLEWARE_CLASSES are set. 2016-05-17 07:24:45 -04:00
Tim Graham
ece4d24f8e Refs #26601 -- Deprecated old-style middleware. 2016-05-17 07:22:26 -04:00
Florian Apolloner
9baf692a58 Fixed #26601 -- Improved middleware per DEP 0005.
Thanks Tim Graham for polishing the patch, updating the tests, and
writing documentation. Thanks Carl Meyer for shepherding the DEP.
2016-05-17 07:22:22 -04:00
Tim Graham
c999c8d8f6 Updated admin's jQuery to 2.2.3. 2016-05-17 07:20:06 -04:00
Loïc Bistuer
ed0ff913c6 Fixed #10506, #13793, #14891, #25201 -- Introduced new APIs to specify models' default and base managers.
This deprecates use_for_related_fields.

Old API:

class CustomManager(models.Model):
    use_for_related_fields = True

class Model(models.Model):
    custom_manager = CustomManager()

New API:

class Model(models.Model):
    custom_manager = CustomManager()

    class Meta:
        base_manager_name = 'custom_manager'

Refs #20932, #25897.

Thanks Carl Meyer for the guidance throughout this work.
Thanks Tim Graham for writing the docs.
2016-05-17 12:07:22 +07:00
Claude Paroz
526575c641 Fixed #21379 -- Created auth-specific username validators
Thanks Tim Graham for the review.
2016-05-16 19:37:57 +02:00
Tim Graham
ee9f947e60 Fixed malformed table in docs/ref/contrib/gis/install/geolibs.txt 2016-05-16 13:27:33 -04:00
Claude Paroz
ebaa2fef27 Fixed #26592 -- Confirmed support for GDAL 2.1
Thanks Daniel Wiesmann for the report and the appropriate fixes.
2016-05-16 18:54:26 +02:00
Tim Graham
aa69f36984 Removed a redundant example in contenttypes docs. 2016-05-16 11:23:56 -04:00
Simon Charette
f937c9ec97 Fixed #24100 -- Made the migration signals dispatch its plan and apps.
Thanks Markus for your contribution and Tim for your review.
2016-05-15 19:51:15 -04:00
Tim Graham
e475e84970 Refs #26021 -- Used hanging indentation in some doc examples. 2016-05-14 19:06:31 -04:00