... turned iterators instead of set of objects ( #32107 ). Fixed a regression in Django 3.1.2 that caused incorrect form input layout on small screens in the admin change form view ( #32069 ). Fixed a regression in Django 3.1 that invalidated pre-Django 3. ... kens ( #32130 ). Added support for asgiref 3.3 ( #32128 ). Fixed a regression in Django 3.1 that caused incorrect textarea layout on medium-sized screens in the admin change form view with the sidebar open ( #32127 ). Fixed a regression in Django 3.0.7 ... ... ls for cryptographic signing , several CSRF improvements , and simple clickjacking protection . An updated default project layout and manage.py that removes the "magic" from prior versions. And for those who don't like the new layout, you can use custo ... and back ends more comprehensively. See the documentation for more details and concrete examples. Updated default project layout and manage.py Django 1.4 ships with an updated default project layout and manage.py file for the startproject management c ... p, so it is outside the project package rather than adjacent to settings.py and urls.py . For instance, with the following layout: manage.py mysite/ __init__.py settings.py urls.py myapp/ __init__.py models.py You could import mysite.settings , mysite. ... ... llowed directory-traversal via an archive with absolute paths or relative paths with dot segments. バグ修正 Fixed an admin layout issue in Django 3.1 where changelist filter controls would become squashed ( #32391 ). ... ... o but with a field named _order ( #33449 ). Fixed a regression in Django 4.0 that caused incorrect ModelAdmin.radio_fields layout in the admin ( #33407 ). Fixed a duplicate operation regression in Django 4.0 that caused a migration crash when altering ... ... ( #28058 ). Prevented SessionBase.cycle_key() from losing session data if _session_cache isn't populated ( #28066 ). Fixed layout of ReadOnlyPasswordHashWidget (used in the admin's user change page) ( #28097 ). Allowed prefetch calls on managers with c ... ... n issues include: Content is cut off or disappears when zoomed. Content that does not inherently require a two-dimensional layout causes scrolling in both directions (vertical and horizontal). Two-dimensional scrolling is acceptable for content like im ... ... nd before the field input. Checkboxes are an exception to the above changes and continue to be displayed in their original layout. list_display now uses boolean icons for boolean fields on related models. The new location keyword argument of the action ... e doesn't support bitwise aggregations. django.contrib.admin The wide class is removed, as it was made obsolete by the new layout. The object-tools block is hoisted out of the content block in forms. The undocumented InclusionAdminNode.__init__() now t ... ... endarWidget ) ... name = CharField ( max_length = 40 , widget = OtherWidget ) ... class Media : ... css = { ... "all" : [ "layout.css" ], ... } ... >>> f = ContactForm () >>> f . media <link href="https://static.example.com/pretty.css" media="all" rel= ... "stylesheet"> <link href="https://static.example.com/layout.css" media="all" rel="stylesheet"> <script src="https://static.example.com/animations.js"></script> <script src="https://s ... ... in templates. If you have customized any geometry widgets or their templates, you may need to update them to match the new layout. django.contrib.postgres The new Lexeme expression for full text search provides fine-grained control over search terms. L ... ... pen only if you're manually putting a directory and a subdirectory on PYTHONPATH . Refer to the section on the new project layout in the 1.4 release notes for migration instructions. You should make sure that: All models are defined in applications tha ... 2026年10月08日