Commit Graph

11965 Commits

Author SHA1 Message Date
Andrzej Bartosiński df8696c0b7 [3.1.x] Corrected admin.register() signature in docs.
Backport of eb215da363 from master
2020-07-29 12:54:26 +02:00
Claude Paroz 06474e929f [3.1.x] Refs #30165 -- Removed leftover 'u' prefix.
Backport of bac5777bff from master
2020-07-29 10:20:08 +02:00
sage 23ce3d8491 [3.1.x] Fixed #31829 -- Used JSONField __contains lookup on key transforms.
Backport of 2d8dcba03a from master
2020-07-28 20:53:11 +02:00
Mariusz Felisiak 247bcef6b4 [3.1.x] Fixed #31836 -- Dropped support for JSONField __contains and __contained_by lookups on SQLite.
The current implementation works only for basic examples without
supporting nested structures and doesn't follow "the general principle
that the contained object must match the containing object as to
structure and data contents, possibly after discarding some
non-matching array elements or object key/value pairs from the
containing object".

Backport of ba691933ce from master.
2020-07-28 13:08:19 +02:00
Mariusz Felisiak 028a5f86f2 [3.1.x] Fixed #31835 -- Dropped support for JSONField __contains lookup on Oracle.
The current implementation works only for basic examples without
supporting nested structures and doesn't follow "the general principle
that the contained object must match the containing object as to
structure and data contents, possibly after discarding some
non-matching array elements or object key/value pairs from the
containing object".
Backport of 02447fb133 from master
2020-07-28 11:54:35 +02:00
Harpreet Sharma 3116444559 [3.1.x] Fixed #31821 -- Removed outdated note in FILE_UPLOAD_PERMISSIONS docs.
Follow up to 22aab8662f

Backport of 248d03fbe9 from master
2020-07-23 21:00:45 +02:00
LincolnPuzey bc75442ebf [3.1.x] Fixed #31816 -- Corrected the expected content type in StreamingHttpResponse docs.
Backport of d754361096 from master
2020-07-23 13:13:17 +02:00
Ramiro Morales 26113b9de1 [3.1.x] Fixed typo in docs/ref/models/querysets.txt.
Backport of 51e536178c from master
2020-07-22 23:37:14 +02:00
Buk Bukowski 2521664041 [3.1.x] Fixed #31814 -- Fixed typo in docs/ref/settings.txt.
Backport of f65454801b from master
2020-07-22 22:39:27 +02:00
Adam Johnson 2b3ca7a5f1 [3.1.x] Doc'd Model.MultipleObjectsReturned docs and improved documentation related with models exceptions.
Backport of bc4fea92b2 from master
2020-07-22 20:21:06 +02:00
Adam Johnson 77abe98816 [3.1.x] Refs #24763 -- Moved DoesNotExist to Model class docs.
Backport of b5f0efa19c from master
2020-07-22 20:20:57 +02:00
Tim Graham d004bcee0c [3.1.x] Reverted "Fixed #30300 -- Allowed migrations to be loaded from directories without __init__.py file."
This reverts commit 3cd3bebe89.
Backport of ff55adbd0d from master
2020-07-22 07:04:52 +02:00
David Chorpash 5360f002f8 [3.1.x] Refs #31720 -- Added examples to BoolAnd() and BoolOr() documentation.
Backport of a2e621b14e from master
2020-07-21 07:02:18 +02:00
Adam Johnson f91ba43ebf [3.1.x] Improved description of USE_THOUSAND_SEPARATOR setting.
Backport of 80f92177eb from master
2020-07-20 12:55:44 +02:00
Florian Apolloner bfe404deb9 [3.1.x] Fixed #31784 -- Fixed crash when sending emails on Python 3.6.11+, 3.7.8+, and 3.8.4+.
Fixed sending emails crash on email addresses with display names longer
then 75 chars on Python 3.6.11+, 3.7.8+, and 3.8.4+.

Wrapped display names were passed to email.headerregistry.Address()
what caused raising an exception because address parts cannot contain
CR or LF.

See https://bugs.python.org/issue39073

Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>

Backport of 96a3ea39ef from master
2020-07-20 07:15:04 +02:00
Mariusz Felisiak 474f65406f [3.1.x] Pinned asgiref to 3.2 series with minimum version to 3.2.10. 2020-07-17 11:08:39 +02:00
Adam Johnson 32e22f0531 [3.1.x] Improved ManyToManyField.through docs.
Backport of e7fa8aff43 from master
2020-07-17 10:48:13 +02:00
Adam Johnson e63644d37b [3.1.x] Refs #31502 -- Made minor edits to Model._state docs.
Backport of 5ef6f62634 from master
2020-07-16 21:12:13 +02:00
Mariusz Felisiak 54dce8148a [3.1.x] Refs #31790 -- Removed incorrect item from 2.2.15 and 3.0.9 release notes.
Django 2.2 and 3.0 don't support settings samesite='None' in
HttpResponse.set_cookie() so fix is not necessary and will not be
backported.
Backport of 9bc8b1ad2d from master
2020-07-16 09:27:39 +02:00
Mariusz Felisiak 3ca8cc0df1 [3.1.x] Fixed #31790 -- Fixed setting SameSite and Secure cookies flags in HttpResponse.delete_cookie().
Cookies with the "SameSite" flag set to None and without the "secure"
flag will be soon rejected by latest browser versions.

This affects sessions and messages cookies.
Backport of 240cbb63bf from master
2020-07-16 08:17:45 +02:00
Eric Theise ac699ba647 [3.1.x] FIxed typo in docs/ref/contrib/postgres/forms.txt.
Backport of d08e6f55e3 from master
2020-07-15 09:04:11 +02:00
Kelechi Precious Nwachukwu 6b273a2165 [3.1.x] Added Igbo language.
Backport of 2cd3e7eeaf from master
2020-07-14 21:05:55 +02:00
Caio Ariede 7fe7d83295 [3.1.x] Fixed #21528 -- Added note about filtering form field's queryset based on instance to admin docs.
Backport of d38c34119e from master
2020-07-13 23:02:05 +02:00
Mariusz Felisiak 7045fa7f7a [3.1.x] Refs #27430 -- Added buffer argument to DiscoverRunner docs.
Backport of 188f7786bc from master
2020-07-10 19:06:40 +02:00
Mariusz Felisiak 33457aa3cf [3.1.x] Refs #30676 -- Added pdb argument to DiscoverRunner docs.
Backport of 2c43840dfb from master
2020-07-10 19:01:39 +02:00
Ramiro Morales fb9add3c7d [3.1.x] Corrected custom model fields how-to.
get_prep_value() method is complementary of from_db_value().

Follow up to e9103402c0.

Backport of 52a0a03671 from master
2020-07-10 11:37:37 +02:00
Carlton Gibson b19372952c [3.1.x] Removed unsupported third-party database backends from docs.
Backport of 1d8256719e from master
2020-07-08 22:30:23 +02:00
Tim Park 3756a0509a [3.1.x] Fixed #31739 -- Documented dependency between HttpRequest stream IO methods and body.
Backport of 060576b0ab from master
2020-07-08 10:41:28 +02:00
Tim Park dad6973629 [3.1.x] Fixed #31502 -- Documented Model._state.db and Model._state.adding
Backport of 697e59d5cf from master
2020-07-08 10:06:45 +02:00
Resulkary 2160481066 [3.1.x] Added Turkmen language.
Backport of af2b3fee08 from master
2020-07-08 09:03:22 +02:00
Jason Held 703256fc68 [3.1.x] Fixed #24816 -- Clarified docs about preventing duplicate signals.
Backport of 639142e24d from master
2020-07-08 08:23:08 +02:00
Jacob Walls eae78a363b [3.1.x] Fixed #29308 -- Clarified how assertQuerysetEqual()'s transform works.
Backport of 659a73bc0a from master
2020-07-04 23:48:48 +02:00
Tom Forbes 7598ba01aa [3.1.x] Refs #12990 -- Added example to JSONField release notes.
Backport of 5d4b9c1cab from master
2020-07-03 12:58:33 +02:00
MansurAliKoroglu 05206ca4ff [3.1.x] Adjusted multi-db example to avoid confusion with DATABASES keys.
Backport of d88952142b from master
2020-07-03 12:41:36 +02:00
David Smith 8904895a80 [3.1.x] Fixed #30945 -- Doc'd plural equations changes in 2.2. release notes.
Backport of 392036be29 from master
2020-07-03 09:38:52 +02:00
Carlton Gibson 268ba2db8e [3.1.x] Refs #6903 -- Adjusted ModelAdmin.preserve_filters docs.
Backport of b142bd4a1b from master
2020-07-02 21:10:34 +02:00
Mariusz Felisiak 4e3b0f56ba [3.1.x] Added stub release notes for 3.0.9.
Backport of c2a835703f from master
2020-07-01 07:12:40 +02:00
Mariusz Felisiak df66b2fba0 [3.1.x] Added release date for 2.2.14 and 3.0.8.
Backport of 0f3aecf581 from master
2020-07-01 06:18:30 +02:00
Adam Johnson 5460041475 [3.1.x] Improved RegexValidator docs.
Backport of 8cf08a01b5 from master
2020-06-30 12:55:52 +02:00
Mariusz Felisiak 3b5e307bbc [3.1.x] Fixed #31751 -- Fixed database introspection with cx_Oracle 8.
Backport of 615e32162f from master
2020-06-30 09:54:42 +02:00
Steven Pousty 1a3029b6b4 [3.1.x] Fixed #31743 -- Doc't that managed=False prevents Django from managing tables modifications.
Backport of d2c135da4c from master
2020-06-26 09:58:55 +02:00
Adam Johnson 6ed4a9bdb3 [3.1.x] Refs #31493 -- Replaced var with const/let in documentation JS.
Backport of 2afa61e7d9 from master
2020-06-24 12:22:54 +02:00
Simon Charette b8cb14e8a0 [3.1.x] Fixed #31735 -- Fixed migrations crash on namespaced inline FK addition on PostgreSQL.
The namespace of the constraint must be included when making the
constraint immediate.

Regression in 22ce5d0031.

Thanks Rodrigo Estevao for the report.

Backport of 2e8941b6f9 from master
2020-06-24 08:59:43 +02:00
Yash Saini 648f6ffcd7 [3.1.x] Refs #31541 -- Added example of creating Redirect objects to redirects app docs.
Backport of a8c0246ece from master
2020-06-23 20:21:43 +02:00
Adam Johnson 59dcbdaed4 [3.1.x] Made small improvements to PostgreSQL operations docs.
Backport of 0ff3228844 from master.
2020-06-23 11:32:50 +02:00
David Smith 928f6a90e4 [3.1.x] Fixed #30933 -- Updated instructions for installing GeoDjango on Windows.
Backport of 7f4db2d82b from master
2020-06-17 20:14:31 +02:00
David Smith 58f7d7c9fd [3.1.x] Adjusted model definition in GeoDjango tutorial.
The example uses the world border data set, where
one of the entries has a null field value.

Backport of 6bc9283751 from master
2020-06-17 20:11:20 +02:00
David Smith 9b95c3bc09 [3.1.x] Refs #31670 -- Removed whitelist/blacklist terminology in docs and comments.
Backport of 10df5b7177 from master
2020-06-17 13:16:17 +02:00
Tobias Krönke 5ba2dfb9d0 [3.1.x] Fixed #31689 -- Doc'd caveat about using bulk_create()'s ignore_conflicts on MariDB and MySQL.
Backport of 69e0d9c553 from master
2020-06-15 12:52:45 +02:00
Mariusz Felisiak 3f70188033 [3.1.x] Updated man page for Django 3.1 beta. 2020-06-15 09:52:09 +02:00
Hasan Ramezani ecd794bc68 [3.1.x] Fixed #31696 -- Updated OWASP links in docs.
Backport of a16080810b from master
2020-06-15 09:44:37 +02:00
sebashwa 2d3b6bce28 [3.1.x] Fixed #31690 -- Added note about fuzzy entries in translation docs.
Backport of 3d664a158d from master
2020-06-15 09:05:09 +02:00
Claude Paroz 6f526cb203 [3.1.x] Added support for the Tajik language.
Thanks Sirius Sufiew for contributing that support.

Backport of db8268bce6 from master
2020-06-12 22:32:46 +02:00
Mariusz Felisiak 714d7cb415 [3.1.x] Refs #31682 -- Doc'd minimal sqlparse version in Django 2.2.
Support for sqlparse < 0.2.2 was broken in
40b0a58f5f because is_whitespace property
was added in sqlparse 0.2.2.
Backport of 4339f2aff2 from master
2020-06-10 06:54:24 +02:00
Nicolas Baccelli 83749dca7a [3.1.x] Fixed #31664 -- Reallowed using non-expressions having filterable attribute as rhs in queryset filters.
Regression in 4edad1ddf6.

Backport of b38d44229f from master
2020-06-08 09:18:32 +02:00
Mariusz Felisiak df9b9de6b0 [3.1.x] Fixed #31660 -- Fixed queryset crash when grouping by m2o relation.
Regression in 3a941230c8.

Thanks Tomasz Szymański for the report.
Backport of 78ad4b4b02 from master
2020-06-08 07:23:09 +02:00
Mariusz Felisiak 031a082d41 [3.1.x] Fixed #31654 -- Fixed cache key validation messages.
Backport of 926148ef01 from master
2020-06-05 07:22:24 +02:00
Claude Paroz acaa201527 [3.1.x] Fixed #30134 -- Ensured unlocalized numbers are string representation in templates.
Backport of 9e57b1efb5 from master
2020-06-04 11:00:40 +02:00
Hasan Ramezani 43254876c2 [3.1.x] Fixed #31650 -- Added note uniqueness of constraints names in docs.
Backport of 55556e51fb from master
2020-06-04 07:38:35 +02:00
David Smith 392e12e266 [3.1.x] Updated How to install Django on Windows guide.
Backport of 25352dc019 from master
2020-06-03 16:28:58 +02:00
Carlton Gibson 616c49d08e [3.1.x] Added CVE-2020-13254 and CVE-2020-13596 to security archive.
Backport of 54975780ee from master
2020-06-03 12:05:46 +02:00
Mariusz Felisiak e260dec258 [3.1.x] Made default_role_error use logger.
This prevents raising errors for translated docs, see
https://github.com/django/djangoproject.com/issues/997

Follow up to 1cdfe8d912.
Backport of 36a2e9607e from master
2020-06-03 11:43:37 +02:00
Carlton Gibson d193aa8da6 [3.1.x] Added stub release notes for 3.0.8.
Backport of 7ec2658e1e from master
2020-06-03 10:55:07 +02:00
Dan Palmer 580bd64c04 [3.1.x] Fixed CVE-2020-13254 -- Enforced cache key validation in memcached backends. 2020-06-03 09:31:28 +02:00
Jon Dufresne 49d7cc19e3 [3.1.x] Fixed CVE-2020-13596 -- Fixed potential XSS in admin ForeignKeyRawIdWidget. 2020-06-03 09:30:41 +02:00
Carlton Gibson 0186b43073 [3.1.x] Added release date for 2.2.13 and 3.0.7.
Backport of 81dc710571 from master
2020-06-03 09:14:30 +02:00
David Smith 52784a83ce [3.1.x] Updated link to Celery.
Backport of 06c8565a46 from master
2020-06-02 14:37:45 +02:00
Carlton Gibson f9a1da1c06 [3.1.x] Refs #31485 -- Added release notes for backport of jQuery upgrade to 3.5.1.
Backport of 0daddf093f from master
2020-06-02 14:34:56 +02:00
Carlton Gibson b6be810643 [3.1.x] Adjusted URL example in tutorial.
No need for the example to be ASP specific.

Co-authored-by: Noah Kantrowitz <noah@coderanger.net>
Backport of 8c49c3f725 from master
2020-06-02 12:27:15 +02:00
Jon Dufresne d7ee69d2f2 [3.1.x] Fixed #31643 -- Changed virtualenv doc references to Python 3 venv.
Backport of 9f4ceee90a from master
2020-06-02 11:53:14 +02:00
Chris May fe07357ef9 [3.1.x] Fixed typo in docs/ref/templates/language.txt.
Backport of ecaac9e42f from master
2020-06-01 20:52:25 +02:00
Nikita Sobolev 22dac456f3 [3.1.x] Made small improvement to docs/topics/db/multi-db.txt.
Backport of 682b295c6c from master
2020-06-01 10:20:54 +02:00
Fabio Sangiovanni c3bd48c4cb [3.1.x] Made minor edits to TemplateResponseMixin.get_template_names() docs.
Backport of 19ceabefd4 from master
2020-06-01 10:17:08 +02:00
Carlton Gibson 98fada7244 [3.1.x] Fixed #31570 -- Corrected translation loading for apps providing territorial language variants with different plural equations.
Regression in e3e48b0012.

Thanks to Shai Berger for report, reproduce and suggested fix.

Backport of dd1ca50b09 from master
2020-06-01 09:27:02 +02:00
Fabio Sangiovanni 9ce281d21f [3.1.x] Added SingleObjectMixin.query_pk_and_slug to CBV flattened index.
Backport of df18882473 from master
2020-06-01 07:49:26 +02:00
David Smith 74baa468e0 [3.1.x] Removed redundant pyenchant dependency in spelling check docs.
Backport of 7514852767 from master
2020-06-01 07:08:25 +02:00
Jon Dufresne 0793f93bbe [3.1.x] Corrected FAQ link in docs/faq/help.txt.
Without the leading slash, was pointing to Python's FAQ
https://docs.python.org/3/faq/index.html.
Backport of 8dabdd2cc5 from master
2020-05-29 21:24:21 +02:00
Jon Dufresne df1bb7ab21 [3.1.x] Changed some doc links to use intersphinx.
Backport of 494ba27b5f from master
2020-05-29 21:10:34 +02:00
David Smith bd766ac8bf [3.1.x] Fixed #31628 -- Updated Windows install guide to recommend venv.
Backport of 922ff51f5a from master
2020-05-27 11:20:13 +02:00
Frantisek Holop a79d0c8c81 [3.1.x] Refs #31615 -- Improved creating extension docs.
Backport of f3ed42c8ad from master
2020-05-27 11:14:31 +02:00
Carlton Gibson 36d5646aff [3.1.x] Updated expected release dates for 3.0.7 and 2.2.13.
Backport of 9d55ae00d3 from master
2020-05-27 10:20:37 +02:00
Mariusz Felisiak ebf553397a [3.1.x] Fixed some formatting issues in docs.
Backport of 803e70b1ad from master
2020-05-27 09:07:33 +02:00
René Fleschenberg ccf3cecbaf [3.1.x] Refs #23097 -- Used new octal format in FILE_UPLOAD_PERMISSIONS docs.
Backport of f24b59267b from master
2020-05-25 21:04:28 +02:00
Claude Paroz 691142364f [3.1.x] Removed instructions for unsupported Apache versions.
Backport of cfa0c0e252 from master
2020-05-25 08:57:14 +02:00
Carlton Gibson b205c0b0cc [3.1.x] Updated list of third-party DB backends.
* Alphabetized third-party DB backend list.
* Added backticks around single-word link texts to ease visual/machine sorting.
* Added CockroachDB to list of third-party DB backends.
* Updated third-party DB backend URLs.

Thanks to Nick Pope and Tim Graham for the review.
Backport of 6dcfa70cac from master
2020-05-21 20:55:25 +02:00
Hasan Ramezani a6c773aa86 [3.1.x] Fixed #31608 -- Doc'd that form ISO 8601 datetime parsing always retains tzinfo.
Backport of 643207efae from master
2020-05-21 20:49:30 +02:00
Michael Manfre 0e0005172e [3.1.x] Added notes related to security pre-notification list requests.
Backport of 0e893248b2 from master
2020-05-21 10:31:29 +02:00
Claude Paroz ff9cdb70cf [3.1.x] Added Kyrgyz language.
Thanks Soyuzbek orozbek uulu for contributing that support.
Backport of 3460ea49e8 from master
2020-05-20 12:30:18 +02:00
Mariusz Felisiak d5231719e0 [3.1.x] Refs #31607 -- Added release notes for a125da6a7c.
Backport of 8328811f04 from master
2020-05-20 09:19:08 +02:00
Carlton Gibson 844e0591f9 [3.1.x] Fixed #31591 -- Clarified "reverse" lookup name in making queries docs.
Backport of 5af17babb0 from master
2020-05-19 20:27:29 +02:00
xncbf 03bfcbad88 [3.1.x] Fixed #31577 -- Clarified docs about bounds of RangeFields.
Backport of 4029bcd6b2 from master
2020-05-18 20:42:33 +02:00
Mariusz Felisiak b46b0f80e8 [3.1.x] Fixed #31584 -- Fixed crash when chaining values()/values_list() after Exists() annotation and aggregation on Oracle.
Oracle requires the EXISTS expression to be wrapped in a CASE WHEN in
the GROUP BY clause.

Regression in efa1908f66.
Backport of 3a941230c8 from master
2020-05-14 15:10:28 +02:00
Jon Dufresne 1c2d0fdf3e [3.1.x] Fixed #31575 -- Added system check for admin sidebar request context processor dependency.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>

Backport of d522b51c40 from master
2020-05-14 11:01:22 +02:00
Jon Dufresne c9a9d042e5 [3.1.x] Refs #31034 -- Documented admin requires django.template.context_processors.request.
Required since d24ba1be7a.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>

Backport of e341bed606 from master
2020-05-14 11:01:17 +02:00
Simon Charette 3913acdb29 [3.1.x] Fixed #31568 -- Fixed alias reference when aggregating over multiple subqueries.
691def10a0 made all Subquery() instances
equal to each other which broke aggregation subquery pushdown which
relied on object equality to determine which alias it should select.

Subquery.__eq__() will be fixed in an another commit but
Query.rewrite_cols() should haved used object identity from the start.

Refs #30727, #30188.

Thanks Makina Corpus for the report.

Backport of adfbf653dc from master
2020-05-14 10:26:05 +02:00
Simon Charette 8cb87a3f7c [3.1.x] Fixed #31566 -- Fixed aliases crash when chaining values()/values_list() after annotate() with aggregations and subqueries.
Subquery annotation references must be resolved if they are excluded
from the GROUP BY clause by a following .values() call.

Regression in fb3f034f1c.

Thanks Makina Corpus for the report.

Backport of 42c08ee465 from master
2020-05-14 08:39:21 +02:00
Mariusz Felisiak 6227173542 [3.1.x] Added stub release notes for 2.2.13.
Backport of 50798d4389 from master
2020-05-14 06:30:02 +02:00
Nick Pope 4eb5e4ee4f [3.1.x] Used :envvar: role and .. envvar:: directive in various docs.
Backport of fbdb032de2 from master
2020-05-13 09:38:59 +02:00
Nick Pope 345fa40cb5 [3.1.x] Used :mimetype: role in various docs.
Backport of feb91dbda1 from master
2020-05-13 09:38:49 +02:00
Nick Pope 15d76dc2ab [3.1.x] Used :pep: role in various docs.
Backport of a9337b4add from master
2020-05-13 09:38:40 +02:00
Jon Dufresne d6e6695d93 [3.1.x] Fixed numbered list in admin overview docs.
Backport of 05ed7104c0 from master
2020-05-13 09:09:39 +02:00
Mariusz Felisiak 90fa00fc47 [3.1.x] Bumped django_next_version in docs config. 2020-05-12 11:40:57 +02:00
Mariusz Felisiak d51e090db2 Updated man page for Django 3.1 alpha. 2020-05-12 11:26:37 +02:00
Mariusz Felisiak 0b938cb7d2 Cosmetic edits to docs/releases/3.1.txt. 2020-05-12 11:26:37 +02:00
Mariusz Felisiak a9e589030a Removed empty sections from 3.1 release notes. 2020-05-12 11:26:37 +02:00
Sergey Fedoseev 91e287cce0
Refs #30678 -- Added support for GDAL 3.1.
OSRSetAxisMappingStrategy() really returns void, so no errcheck is
needed. Previously set errcheck was raising positive false exceptions
on GDAL 3.1.
2020-05-12 11:25:19 +02:00
Mariusz Felisiak 17ea7cc973 Fixed #31569 -- Confirmed support for GEOS 3.8. 2020-05-12 09:06:06 +02:00
Claude Paroz 58f1b07e49 Fixed #30678 -- Added support for GDAL 3. 2020-05-12 09:06:06 +02:00
Tom Carrick d24ba1be7a Fixed #31034 -- Added a navigation sidebar to the admin.
Co-authored-by: elky <elky@users.noreply.github.com>
Co-authored-by: Goetz <goetz.buerkle@gmail.com>
2020-05-11 18:16:38 +02:00
Jon Dufresne 72a170b4c3 Fixed #25236 -- Deprecated {% ifequal %} and {% ifnotequal %} template tags.
The {% if %} tag provides all features of these tags.

Since Django 1.2 (May 17, 2010), the docs have hinted that
{% ifequal %} and {% ifnotequal %} will be deprecated in a future
Django version. Time to make it official.
2020-05-11 09:07:33 +02:00
sage 6789ded0a6 Fixed #12990, Refs #27694 -- Added JSONField model field.
Thanks to Adam Johnson, Carlton Gibson, Mariusz Felisiak, and Raphael
Michel for mentoring this Google Summer of Code 2019 project and
everyone else who helped with the patch.

Special thanks to Mads Jensen, Nick Pope, and Simon Charette for
extensive reviews.

Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-05-08 07:23:31 +02:00
Mariusz Felisiak f97f71f592 Refs #12990 -- Bumped mysqlclient requirement to >= 1.4.0.
MySQLdb.constants.FIELD_TYPE.JSON was added in mysqlclient 1.4.0rc2.
2020-05-08 06:14:42 +02:00
Omkar Kulkarni b7f1c0d86d
Fixed #31495 - Corrected note about admin i18n in tutorial.
Thanks to Adam Johnson and Claude Paroz for review.
2020-05-06 16:19:04 +02:00
Adam Johnson 83c631ade7
Improved wording in Q() docs. 2020-05-06 06:43:28 +02:00
Adam Johnson 1c2c6f1b51
Fixed a/an typos in "SQL" usage. 2020-05-06 06:35:26 +02:00
Mariusz Felisiak aff7a58aef
Updated admin's Select2 to 4.0.13. 2020-05-05 11:30:02 +02:00
Mariusz Felisiak 30083e0780 Fixed #31485 -- Updated admin's jQuery to 3.5.1. 2020-05-05 11:00:05 +02:00
Mariusz Felisiak b73e66e758
Fixed #31538 -- Fixed Meta.ordering validation lookups that are not transforms.
Regression in 440505cb2c.

Thanks Simon Meers for the report.
2020-05-05 09:08:29 +02:00
Chris Burchhardt d2b9a9fdbb Refs #28622 -- Corrected PASSWORD_RESET_TIMEOUT/PASSWORD_RESET_TIMEOUT_DAYS docs.
Removed outdated note about an extra day in PASSWORD_RESET_TIMEOUT
docs and incorrect "minimum" phrase.
2020-05-05 08:19:25 +02:00
David Smith 2522559d1a Fixed #31534 -- Deprecated django.conf.urls.url(). 2020-05-05 07:34:34 +02:00
QQ喵 0ebabe325d Doc'd country part of locale name with more than 2 characters. 2020-05-04 20:50:18 +02:00
Adam Johnson d17b380653 Refs #30573 -- Rephrased "Of Course" and "Obvious(ly)" in documentation and comments. 2020-05-04 12:10:47 +02:00
Adam Johnson 787981f9d1 Corrected models.FilePathField signature in docs. 2020-05-04 12:10:41 +02:00
Tom Forbes c00bc27945 Refs #30372 -- Stopped watching built-in Django translation files by auto-reloader. 2020-05-04 09:13:47 +02:00
Nick Pope 8f10ceaa90 Changed `'%s' % value` pattern to `str(value)`. 2020-05-04 08:27:18 +02:00
Mariusz Felisiak 7668f9bce9 Fixed typo in docs/releases/3.0.6.txt. 2020-05-04 07:42:25 +02:00
Mariusz Felisiak 8e8ff38cb8 Added stub release notes for 3.0.7. 2020-05-04 07:38:35 +02:00
Mariusz Felisiak c5358794e3 Added release date for 3.0.6. 2020-05-04 07:04:23 +02:00
Ian Foote b4068bc656 Fixed #31455 -- Added support for deferrable exclusion constraints on PostgreSQL. 2020-05-01 09:08:36 +02:00
Greg Kaleka 5d2f5dd4cc Doc'd Meta inheritance from abstract parents. 2020-05-01 07:48:50 +02:00
David Smith 505b7b6163
Refs #27778 -- Removed reference to ASCII usernames in django.contrib.auth.models.User docs. 2020-05-01 06:11:27 +02:00
Adrian D'Alessandro 235b681351 Doc'd send_email() behavior when from_email is None. 2020-04-30 12:45:43 +02:00
Ian Foote c226c6cb32 Fixed #20581 -- Added support for deferrable unique constraints. 2020-04-30 10:43:50 +02:00
David Smith bb13711451 Fixed #25712 -- Reorganized templates docs. 2020-04-30 08:12:09 +02:00
Hasan Ramezani 33f7739108 Fixed #31356 -- Changed IRC links to the Freenode webchat. 2020-04-29 20:08:36 +02:00
Mariusz Felisiak 54646a423b
Refs #27468 -- Made user sessions use SHA-256 algorithm. 2020-04-29 16:45:00 +02:00
Hasan Ramezani 68fc21b378 Fixed #29249 -- Made JSON and YAML serializers use Unicode by default. 2020-04-28 11:11:39 +02:00
François Freitag 9ef4a18dbe Changed django.forms.ValidationError imports to django.core.exceptions.ValidationError.
Co-Authored-By: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-04-28 10:49:00 +02:00
Mariusz Felisiak 2788de95e3 Updated expected date for 3.0.6 release. 2020-04-28 10:12:33 +02:00
Mariusz Felisiak b28be08cac
Fixed broken links in docs. 2020-04-28 10:09:45 +02:00
Mariusz Felisiak dd3dcd2840
Fixed typo in docs/topics/i18n/translation.txt.
Thanks durey for the report.
2020-04-28 10:07:34 +02:00
Mariusz Felisiak ca769c8c13
Fixed #31505 -- Doc'd possible email addresses enumeration in PasswordResetView. 2020-04-27 18:06:11 +02:00
Hasan Ramezani d6db186427
Fixed #31514 -- Fixed default form widgets in model fields docs. 2020-04-25 21:20:29 +02:00
Tim Schilling a92cc84b4a Refs #31369 -- Deprecated models.NullBooleanField in favor of BooleanField(null=True). 2020-04-24 10:10:45 +02:00
Tim Schilling 34a69c2458 Corrected outputting BooleanField as HTML in forms docs. 2020-04-24 09:08:05 +02:00
Tanmay Vijay e43abbbd70 Doc'd PasswordChangeView/PasswordResetView.success_url defaults. 2020-04-24 08:21:51 +02:00
Andy Chosak 2c4f603461 Fixed typo in docs/intro/contributing.txt. 2020-04-24 08:00:16 +02:00
David Smith e0757c49ac
Updated template language philosophy in DTL docs. 2020-04-23 20:42:55 +02:00
Jon Dufresne faa08449dd
Fixed broken link to Watchmen configuration in docs/ref/django-admin.txt. 2020-04-23 18:33:32 +02:00
Mads Jensen 060d9d4229
Added link to Mozilla's infosec page on web security. 2020-04-22 16:26:15 +02:00