1
0
mirror of https://github.com/django/django.git synced 2024-12-28 20:16:19 +00:00
Commit Graph

9273 Commits

Author SHA1 Message Date
Krzysztof Jurewicz
6dd4d2709b Fixed #26774 -- Corrected value of default_zoom in GeoModelAdmin doc 2016-06-17 14:01:13 +02:00
Jon Dufresne
4f336f6652 Fixed #26747 -- Used more specific assertions in the Django test suite. 2016-06-16 14:19:18 -04:00
Ville Skyttä
96f97691ad Fixed broken links in docs and comments. 2016-06-15 21:20:23 -04:00
Sergey Fedoseev
db613f4f12 Refs #14030 -- Updated docs per "Improved expression support for python values."
Complements e2d6e14662.
2016-06-15 10:34:15 -04:00
Tim Graham
abec15ad81 Removed nonexistent attribute in docs/ref/contrib/admin/index.txt 2016-06-15 08:31:38 -04:00
Ville Skyttä
7003174fec Fixed #26754 -- Documented django.template.context_processors.tz 2016-06-14 11:57:17 +02:00
Jon Dufresne
267dc4addd Fixed #4136 -- Made ModelForm save empty values for nullable CharFields as NULL.
Previously, empty values were saved as strings.
2016-06-13 09:14:36 -04:00
Berker Peksag
0bce2f102c Fixed #12810 -- Added a check for clashing ManyToManyField.db_table names. 2016-06-10 10:57:22 -04:00
Vytis Banaitis
83120af2c1 Refs #26524 -- Fixed an error in 1.11 release notes. 2016-06-09 20:34:53 -04:00
Berker Peksag
8f50ff5b15 Fixed #21588 -- Corrected handler initialization in "modifying upload handlers" example. 2016-06-09 12:50:35 -04:00
Michal Petrucha
686a593aaa Fixed #26648 -- Added a system check for invalid related_query_name's containing underscores. 2016-06-09 11:57:32 -04:00
John Karahalis
37b36af6c6 Fixed typo in docs/intro/tutorial07.txt 2016-06-09 11:15:39 -04:00
Berker Peksag
ae2a7da86b Fixed #20468 -- Added loaddata --exclude option.
Thanks Alex Morozov for the initial patch.
2016-06-09 10:35:32 -04:00
Sergey Fedoseev
21130ce1a9 Fixed #26718 -- Added system check for existence of the fields specified by ForeignKey.to_field. 2016-06-09 10:19:09 -04:00
krishbharadwaj
f6681393d3 Fixing #26524 -- Made a foreign key id reference in ModelAdmin.list_display display the id. 2016-06-08 17:20:03 -04:00
Berker Peksag
724dd2043e Fixed #26717 -- Added Serializer.stream_class to customize the stream. 2016-06-08 11:08:18 -04:00
Baylee Feore
7767978bee Fixed #26702 -- Documented how to change the base class of a custom field. 2016-06-08 10:37:39 -04:00
Tommy Beadle
729b9452b1 Fixed #26704 -- Documented DjangoJSONEncoder. 2016-06-07 14:53:19 -04:00
Scott Vitale
be729b6120 Fixed #10107 -- Allowed using mark_safe() as a decorator.
Thanks ArcTanSusan for the initial patch.
2016-06-07 12:24:03 -04:00
Jon Dufresne
31a9a965a3 Added some links to the TypedChoiceField docs. 2016-06-06 12:11:17 -04:00
Tom Christie
316395d828 Fixed #26713 -- Documented resolving deprecation warnings before upgrade. 2016-06-06 11:38:02 -04:00
Tim Graham
6a316423df Documented known Python 3.5+ test failures in contributing tutorial. 2016-06-06 10:49:44 -04:00
wim glenn
5ebebd1159 Fixed #26707 -- Added QueryDict.fromkeys() 2016-06-06 08:54:25 -04:00
Tom Christie
da22079c21 Linked to upgrade guide from release notes. 2016-06-06 07:28:55 -04:00
Tim Graham
01e567864e Added stub release notes for 1.9.8. 2016-06-04 19:58:14 -04:00
Tim Graham
1f5eb521a0 Added release date for 1.9.7. 2016-06-04 19:24:51 -04:00
Vytis Banaitis
2f9c4e2b6f Fixed #19963 -- Added support for date_hierarchy across relations. 2016-06-04 12:14:02 -04:00
Vytis Banaitis
89ca112884 Fixed a typo in docs/ref/models/querysets.txt 2016-06-04 12:04:40 -04:00
Evan Palmer
84d8d1d715 Fixed #25127 -- Documented how to organize models in a package. 2016-06-04 11:47:55 -04:00
Holly Becker
55fec16aaf Fixed #26628 -- Changed CSRF logger to django.security.csrf. 2016-06-04 10:17:06 -04:00
Anton I. Sipos
c3495bb984 Fixed #12666 -- Added EMAIL_USE_LOCALTIME setting.
When EMAIL_USE_LOCALTIME=True, send emails with a Date header
in the local time zone.
2016-06-04 09:55:50 -04:00
Berker Peksag
b9c04801d4 Used snippet directive in file upload example. 2016-06-04 09:24:30 -04:00
Tim Graham
e2296e7f0a Fixed #26667 -- Fixed a regression in queries on a OneToOneField that has to_field and primary_key=True.
Thanks Simon Charette for review.
2016-06-04 08:04:51 -04:00
Berker Peksag
54febdb8be Fixed #26604 -- Added a multiple file upload example to topics/http/file-uploads.txt. 2016-06-03 17:36:31 -04:00
B. J. Potter
9c53facc45 Fixed #26596 -- Added Jinja2 {{ csrf_input }} documentation. 2016-06-03 15:24:45 -04:00
B. J. Potter
261738990e Added syntax highlighting to CSRF example. 2016-06-03 15:18:58 -04:00
mieciu
19ff506878 Fixed #26698 -- Fixed PostgreSQL dbshell crash on an empty database name. 2016-06-03 12:30:21 -04:00
Ed Henderson
4a4d7f980e Fixed #26021 -- Applied hanging indentation to docs. 2016-06-03 11:44:34 -04:00
Will Koster
9899347641 Fixed #26638 -- Allowed callable arguments for QuerySet.get_or_create()/update_or_create() defaults. 2016-06-03 10:00:53 -04:00
shaunagm
44c7e5d374 Fixed #26701 -- Replaced /newticket links to Trac with /. 2016-06-03 08:48:12 -04:00
Holly Becker
ff9198ee0f Refs #26628 -- Documented CSRF failure logging. 2016-06-02 20:42:41 -04:00
jrabbit
d65e2899b2 Fixes #26700 -- Added how to upgrade to TEMPLATES link in 1.10 release notes. 2016-06-02 20:27:33 -04:00
Chad Shryock
e6c5e68acd Fixed #26526 -- Documented QuerySet.latest()'s dependency on database ordering. 2016-06-02 19:42:08 -04:00
Brad Melin
f6517a5335 Fixed #26672 -- Fixed HStoreField to raise ValidationError instead of crashing on non-dict JSON input. 2016-06-02 16:28:01 -04:00
Tim Graham
abc5223834 Added a ticket tracker link in docs/internals/contributing/bugs-and-features.txt 2016-06-02 16:03:29 -04:00
Claude Paroz
f6fefbf8cb Fixed #26337 -- Added i18n note about using a non-English base language
Thanks Cristiano Coelho for the report and Tim Graham for the review.
2016-06-02 20:56:31 +02:00
Philip James
2c90981c5f Fixed #26699 -- Mentioned doc theming difference (locally-built vs. website). 2016-06-02 14:06:56 -04:00
Rustam Kashapov
df8412d2e5 Fixed #26617 -- Added distinct argument to contrib.postgres's StringAgg. 2016-06-02 13:48:35 -04:00
Tim Graham
149ace94df Updated release notes links to prevent warnings with Sphinx 1.4.2. 2016-06-02 11:41:49 -04:00
Tim Graham
3db04d4422 Fixed #26084 -- Documented that deprecation warnings are no longer loud. 2016-06-01 15:17:25 -04:00
Tim Graham
af32737573 Ignored new warnings when building the docs with Sphinx 1.4. 2016-06-01 11:03:41 -04:00
Tim Graham
db2a6b6bfa Fixed #26695 -- Clarified return value of View.options().
Thanks mmoreaux and DheerendraRathor.
2016-06-01 08:15:50 -04:00
Tim Graham
bc84278615 Fixed #26675 -- Dropped support for PostgreSQL 9.2/PostGIS 2.0. 2016-06-01 07:45:22 -04:00
Tim Graham
47f22e8286 Fixed #25645 -- Dropped support for SpatiaLite < 4.0. 2016-05-31 11:31:51 -04:00
Florian Apolloner
62e4f8ec43 Fixed a typo in the docs. 2016-05-31 16:54:24 +02:00
Berker Peksag
698c8dfc2a Fixed #26503 -- Removed an outdated example from session docs. 2016-05-31 07:21:00 -04:00
Ketan Bhatt
59523c06fe Fixed #26679 -- Documented which methods are disabled on RelatedManager if there's an intermediate table. 2016-05-31 07:14:31 -04:00
Ketan Bhatt
f31fbbae1a Fixed #26653 -- Made SyndicationFeed.latest_post_date() return time in UTC. 2016-05-30 18:36:15 -04:00
Christophe Pettus
92107522ed Fixed #26684 -- Removed incorrect index example in docs/ref/contrib/postgres/search.txt. 2016-05-30 14:21:05 -04:00
Tim Graham
6f520bf7d8 Added RemovedInDjango21Warning 2016-05-28 21:12:39 -04:00
Tim Graham
cbea13f344 Confirmed support for PostGIS 2.2. 2016-05-28 20:48:32 -04:00
Tim Graham
cc0d1eaaea Refs #22634 -- Removed unneeded app_label in custom session engine example. 2016-05-28 17:32:37 -04:00
Simon Charette
4f474607de
Fixed #26646 -- Added IOBase methods required by TextIOWrapper to File.
Thanks Tim for the review.
2016-05-27 21:05:58 -04:00
Bas Westerbaan
9407cc966b Fixed #26635 -- Clarified Argon2PasswordHasher's memory_cost differs from command line utility. 2016-05-27 18:37:12 -04:00
Tim Graham
0e7e47b5d7 Fixed #26652 -- Documented removal of model instance _(default/base)_manager attributes. 2016-05-27 10:36:16 -04:00
Sergey Fedoseev
26794f6657 Fixed typo in docs/topics/forms/modelforms.txt 2016-05-27 10:31:33 -04:00
Nick Smith
838386815f Fixed typo in docs/ref/models/querysets.txt 2016-05-27 09:12:54 -04:00
MariKiev
30d110ef43 Added imports to docs/topics/db/aggregation.txt example. 2016-05-25 09:52:33 -04:00
Tim Graham
46a38307c2 Removed versionadded/changed annotations for 1.9. 2016-05-20 11:44:29 -04:00
Tim Graham
1915a7e5c5 Increased the default PBKDF2 iterations. 2016-05-20 09:19:19 -04:00
Tim Graham
97c3dfe12e Added stub 1.11 release notes. 2016-05-19 22:28:24 -04:00
Tim Graham
8df083a3ce Bumped version; master is now 1.11 pre-alpha. 2016-05-19 22:20:21 -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
Tim Graham
0eac5535f7 Removed unused sections in 1.10 release notes. 2016-05-19 11:49:15 -04:00
Tim Graham
2e1d44e46d Fixed #26637 -- Removed obsolete note in docs/internals/contributing/writing-documentation.txt 2016-05-19 09:11:56 -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
Barthelemy Dagenais
a5c8072ab1 Fixed #26627 -- Fixed on_commit callbacks execution order when callbacks make transactions. 2016-05-18 09:09:48 -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
Loïc Bistuer
3a47d42fa3 Fixed #20932, #25897 -- Streamlined manager inheritance. 2016-05-17 02:29:22 +07:00
Claude Paroz
9935f97cd2 Refs #21379 -- Normalized unicode username inputs 2016-05-16 19:38:02 +02: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
Aron Podrigal
85ef98dc6e Fixed #24305 -- Allowed overriding fields on abstract models.
Fields inherited from abstract base classes may be overridden like
any other Python attribute. Inheriting from multiple models/classes
with the same attribute name will follow the MRO.
2016-05-16 07:32:21 -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
Tim Graham
5238af3257 Used 'classmethod' annotation in docs/topics/auth/customizing.txt 2016-05-14 18:58:09 -04:00
Tim Graham
af69c9113c Fixed typo in docs/topics/db/models.txt 2016-05-13 15:18:33 -04:00
Matthew Somerville
1962a96a30 Fixed #24938 -- Added PostgreSQL trigram support. 2016-05-13 12:38:21 -04:00
eltronix
996cadfa5f Prevented findstatic argument from appearing as multiple options. 2016-05-12 20:26:33 -04:00
eltronix
f4bb2dce79 Fixed typo in docs/topics/conditional-view-processing.txt 2016-05-12 20:07:34 -04:00