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

3048 Commits

Author SHA1 Message Date
Simon Charette
3089018e95 Fixed -- Deprecated SERIALIZE test database setting.
Whether or not the state of a test database should be serialized can be
inferred from the set of databases allowed to be access from discovered
TestCase/TransactionTestCase enabling the serialized_rollback feature
which makes this setting unnecessary.

This should make a significant test suite bootstraping time difference
on large projects that didn't explicitly disable test database
serialization.
2021-02-24 20:31:11 +01:00
Mariusz Felisiak
af685b5f00
Refs -- Corrected DiscoverRunner.setup_databases() signature.
Accidentally changed in 61a0ba43cfd4ff66f51a9d73dcd8ed6f6a6d9915.
2021-02-24 20:24:05 +01:00
Hasan Ramezani
b1af2cca3a Fixed -- Doc'd the return value of EmailMessage.send(). 2021-02-23 06:35:45 +01:00
Johannes Wilm
0fd05df7b5 Refs -- Added Model._state.adding to docs about copying model instances. 2021-02-22 11:14:58 +01:00
David Smith
e412b28845
Fixed -- Fixed typo in docs/topics/testing/tools.txt. 2021-02-12 09:20:30 +01:00
ThinkChaos
b99d6c9cbc Fixed -- Added next_page/get_default_redirect_url() to LoginView. 2021-02-08 21:08:05 +01:00
Mariusz Felisiak
59841170ba
Used .. attribute:: directive in authentication views docs. 2021-02-08 18:12:58 +01:00
Anil Khatri
de4492fbb1 Fixed -- Doc'd django.views.generic.detail.BaseDetailView. 2021-02-08 06:39:09 +01:00
Adam Johnson
59e503b670 Modernized custom manager example
Since this example was added 15 years ago in a8ccdd0fcd631e8e928ef20547e1fe3e313dc607, the ORM has gained the ability to do the `COUNT(*)` related query, so do it with the ORM to avoid misleading users that raw SQL is only supported from manager methods.
2021-01-28 15:59:39 +01:00
Adam Johnson
8a642b88c3 Changed "Don't overuse count() or exists()" example to Python. 2021-01-27 20:24:27 +01:00
Paul Ganssle
10d1261984 Refs -- Allowed use of non-pytz timezone implementations. 2021-01-19 11:59:37 +01:00
Mariusz Felisiak
73ffc73b68 Corrected versionadded annotations. 2021-01-19 11:52:47 +01:00
Mariusz Felisiak
d992f4e3c2 Refs -- Removed models.NullBooleanField per deprecation timeline. 2021-01-14 17:50:04 +01:00
Mariusz Felisiak
b7dd89ed53 Removed versionadded/changed annotations for 3.1. 2021-01-14 17:50:04 +01:00
Jon Moroney
76ae6ccf85 Fixed -- Increased salt entropy of password hashers.
Co-authored-by: Florian Apolloner <florian@apolloner.eu>
2021-01-14 11:20:28 +01:00
Carles Pina Estany
7072bff1fd
Fixed cross-link in CBV topic documentation. 2021-01-14 11:17:59 +01:00
Nick Pope
9204485396
Fixed -- Added decorators for admin action and display functions.
Refs , .
2021-01-13 17:19:22 +01:00
Florian Apolloner
102d92fc09 Refs -- Added Signer.sign_object()/unsign_object().
Co-authored-by: Craig Smith <hello@craigiansmith.com.au>
2021-01-06 20:16:47 +01:00
Alexander Lyabah
415f50298f Fixed -- Allowed passing None params to QuerySet.raw(). 2021-01-05 10:37:11 +01:00
Jon Dufresne
d3b3eb860d Removed forms-MAX_NUM_FORMS POST data in docs
The field is ignored server-side and only exists as a client-side
convenience. Removing it slightly simplifies the documentation and
avoids some distractions.

Added note:: for MIN_NUM_FORMS/MAX_NUM_FORMS in
Understanding the management form section.

Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2020-12-23 17:15:48 +01:00
Nick Pope
d23dad5778 Refs -- Corrected note about storing None in the cache. 2020-12-17 09:57:21 +01:00
Tom Forbes
b5e12d490a Fixed -- Allowed specifying type of auto-created primary keys.
This also changes the default type of auto-created primary keys
for new apps and projects to BigAutoField.
2020-12-15 11:25:46 +01:00
Jon Dufresne
550297d20d
Added backticks to code literals in various docs. 2020-12-15 07:19:00 +01:00
Mariusz Felisiak
5ce31d6a71
Fixed -- Deprecated MemcachedCache. 2020-12-09 21:27:32 +01:00
Matthias Kestenholz
62f477d171
Adjusted formatting of ngettext docs code examples. 2020-12-08 12:09:59 +01:00
Florian Apolloner
98e05ccde4 Fixed -- Cleaned-up duplicate connection functionality. 2020-12-08 08:55:44 +01:00
Timo Ludwig
d8dfff2ab0 Fixed -- Made ReadOnlyPasswordHashField disabled by default. 2020-12-03 09:32:08 +01:00
Ian Foote
3828879eee Fixed -- Added durable argument to transaction.atomic(). 2020-11-27 21:43:15 +01:00
Ian Foote
8b040e3cbb Fixed , Fixed -- Added support for transform references in expressions.
Thanks Mariusz Felisiak and Simon Charette for reviews.
2020-11-27 20:42:04 +01:00
sage
4a412c2e65
Fixed -- Doc'd JSONField in ModelForm field mapping. 2020-11-17 08:52:23 +01:00
Nick Pope
477c800443
Changed docs and a code comment to use gender-neutral pronouns.
Follow up to e1b77238171cc96f4451a06fb4682e2378896238.
2020-11-13 22:26:30 +01:00
Hasan Ramezani
c448e614c6
Fixed -- Removed unnecessary select_related in queries doc. 2020-11-12 10:06:04 +01:00
Carles Pina Estany
a43e2f66d7
Fixed -- Clarified filesystem cache docs. 2020-11-10 11:15:29 +01:00
Hasan Ramezani
3f7b327562 Fixed -- Made assertQuerysetEqual() compare querysets directly.
This also replaces assertQuerysetEqual() to
assertSequenceEqual()/assertCountEqual() where appropriate.

Co-authored-by: Peter Inglesby <peter.inglesby@gmail.com>
Co-authored-by: Mariusz Felisiak <felisiak.mariusz@gmail.com>
2020-11-06 09:24:50 +01:00
Jon Dufresne
859cd7c6b4
Fixed -- Fixed crash when formset management form is invalid.
Co-authored-by: Patryk Zawadzki <patrys@room-303.com>
2020-11-05 10:40:41 +01:00
christa
c36075ac1d Fixed -- Added system check for file system caches location.
Thanks Johannes Maron and Nick Pope for reviews.
2020-11-04 20:30:23 +01:00
Carlton Gibson
ebb08d1942
Fixed -- Ensured AsyncRequestFactory correctly sets headers. 2020-11-04 11:07:15 +01:00
Caio Ariede
9ca22c7733 Fixed -- Doc'd running migrations in transactions. 2020-10-29 08:00:06 +01:00
Carlton Gibson
e17ee44688 Fixed -- Added asgiref 3.3 compatibility.
Thread sensitive parameter is True by default from asgiref v3.3.0.
Added an explicit thread_sensitive=False to previously implicit uses.
2020-10-27 11:24:07 +01:00
Jon Dufresne
2b56c56653 Corrected output of rendered formset example in model formsets docs. 2020-10-26 07:38:54 +01:00
Carlton Gibson
ad11f5b8c9 Fixed -- Added per-view opt-out for APPEND_SLASH behavior. 2020-10-22 14:15:19 +02:00
Simon Charette
284bde3fbe
Refs -- Linked through_default docs to related managers methods. 2020-10-22 10:08:35 +02:00
Jacob Walls
4e4db426c5
Fixed typo in docs/topics/testing/tools.txt. 2020-10-18 19:50:14 +02:00
shivam sharma
c9f12f149f Fixed typo in docs/topics/i18n/translation.txt. 2020-10-13 08:06:37 +02:00
Carlton Gibson
1b32b2f614
Fixed -- Added link back to migrating section in multi-db docs example. 2020-10-08 12:45:06 +02:00
Tom Carrick
dcb69043d0 Fixed -- Added headers parameter to HttpResponse and subclasses. 2020-10-07 09:19:57 +02:00
meghanabhange
848770dd2c Fixed -- Improved error messages for the number of submitted forms in formsets. 2020-09-28 07:05:34 +02:00
Carlton Gibson
2a55431a56 Fixed -- Clarified manual logging config docs. 2020-09-22 14:15:38 +02:00
János Roden
9e4b1ad33e Fixed -- Clarified docs for when request.FILES is set.
Co-authored-by: Carlton Gibson <carlton.gibson@noumenal.es>
2020-09-22 13:28:00 +02:00
David D Lowe
f3901b5899 Doc'd that UpdateCacheMiddleware and cache_page affect downstream caches.
Thanks to Nick Pope for review.
2020-09-17 14:28:22 +02:00