... d by some browsers. This allows a user to be redirected to an unsafe URL unexpectedly. Django relies on user input in some cases (e.g. django.contrib.auth.views.login() , django.contrib.comments , and i18n ) to redirect the user to an "on success" URL ... y a negated Q object that contains a F object. ( #22429 ). Avoided overwriting data fetched by select_related() in certain cases which could cause minor performance regressions ( #22508 ). ... ... fine when screenshots should be taken during a selenium test, the test class must use the @django.test.selenium.screenshot_cases decorator with a list of supported screenshot types ( "desktop_size" , "mobile_size" , "small_screen_size" , "rtl" , "dark ... the desired point to generate the screenshots. For example: from django.test.selenium import SeleniumTestCase , screenshot_cases from django.urls import reverse class SeleniumTests ( SeleniumTestCase ): @screenshot_cases ([ "desktop_size" , "mobile_si ... ine being "covered" only means it was executed during tests. It doesn't guarantee the line is well-tested or that all edge cases are handled. During review, assess test quality beyond just coverage numbers. Missing coverage should be considered a warn ... ... CSRF token now rotates when a user logs in. Some Python 3 compatibility fixes including #20212 and #20025. Fixed some rare cases where get() exceptions recursed infinitely (#20278). makemessages no longer crashes with UnicodeDecodeError (#20354). Fixe ... ... one query for updating an existing row while the old algorithm needed two. See Model.save() for more details. In some rare cases the database doesn't report that a matching row was found when doing an UPDATE . An example is the PostgreSQL ON UPDATE tr ... igger which returns NULL . In such cases it is possible to set django.db.models.Options.select_on_save flag to force saving to use the old algorithm. マイナーな機能 ... lp_text that was provided). Since this happened at the model layer, there was no way to prevent the text from appearing in cases where it wasn't applicable such as form fields that implement user interactions that don't involve a keyboard and/or a mou ... ... r input in some cases (e.g. django.contrib.auth.views.login() and i18n ) to redirect the user to an "on success" URL. The security check for the ... ( #26177 )。 隠された関係のクエリ名のクラッシュに対するシステムチェックを追加しました ( #26162 )。 Fixed a regression for cases where ForeignObject.get_extra_descriptor_filter() returned a Q object ( #26153 ). Fixed regression with an __in=qs lookup ... ... runner automatically overrides the MAILERS configuration to substitute Django's memory email backend . This prevents test cases from sending real email and gives them access to the messages that would have been sent. 開発用にメールを設定する discusse ... バージョン 6.1 で非推奨: The fail_silently , auth_user , auth_password , and connection arguments are deprecated. In most cases they can be replaced by using with an appropriate MAILERS configuration. See Replacing fail_silently , Replacing auth_user ... バージョン 6.1 で非推奨: The fail_silently , auth_user , auth_password , and connection arguments are deprecated. In most cases they can be replaced by using with an appropriate MAILERS configuration. See Replacing fail_silently , Replacing auth_user ... ... that was created with 64-bit constraints, you will need to manually drop the old constraint prior to invoking reset . Test cases are now run in a transaction Django 1.1 runs tests inside a transaction, allowing better test performance (see test perfor ... f they rely on invalid assumptions about the test environment, or if they require a specific test case ordering. For these cases, TransactionTestCase can be used instead. This is a just a quick fix to get around test case errors revealed by the new ro ... mprovements Tests written using Django's testing framework now run dramatically faster (as much as 10 times faster in many cases). This was accomplished through the introduction of transaction-based tests: when using django.test.TestCase , your tests ... ... ... ncompatibility in django.utils.text.unescape_entities() (#21185). Fixed a couple data corruption issues with QuerySet edge cases under Oracle and MySQL (#21203, #21126). Fixed crashes when using combinations of annotate() , select_related() , and only ... ... ion. Django now provides a mod_wsgi auth handler . The QuerySet.delete() and Model.delete() can now take fast-path in some cases. The fast-path allows for less queries and less objects fetched into memory. See QuerySet.delete() for details. An instanc ... ded would still end up represented in the request.POST attribute. Developers wishing to access the raw POST data for these cases, should use the request.body attribute instead. request_finished signal Django used to send the request_finished signal as ... after handling a request, most notably uWSGI prior to 1.2.6 and Sentry's error reporting middleware up to 2.0.7. In those cases the request_finished signal isn't sent at all. This can result in idle connections to database and memcache servers. OPTIO ... 2026年10月08日