per page, with , order by , clip by
Results of 1 - 10 of about 55 for ordering (0.011 sec.)
クラスベースのジェネリックビュー: フラットインデックス 14280
クラスベースのジェネリックビュー: フラットインデックス この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューごとに、クラスツリーの有効な属性とメソッドが表されます。動作を定義するクラスの観点から編集された ... [ get_allow_empty() ] content_type context_object_name [ get_context_object_name() ] extra_context http_method_names model ordering [ get_ordering() ] paginate_by [ get_paginate_by() ] paginate_orphans [ get_paginate_orphans() ] paginator_class queryset ... pe context_object_name [ get_context_object_name() ] date_field [ get_date_field() ] extra_context http_method_names model ordering [ get_ordering() ] paginate_by [ get_paginate_by() ] paginate_orphans [ get_paginate_orphans() ] paginator_class queryset ... name() ] date_field [ get_date_field() ] extra_context http_method_names make_object_list [ get_make_object_list() ] model ordering [ get_ordering() ] paginate_by [ get_paginate_by() ] paginate_orphans [ get_paginate_orphans() ] paginator_class queryset ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
モデルの Meta オプション 10274
モデルの Meta オプション このドキュメントでは、モデル内部の class Meta 内でモデルに与えられる、すべての可能な メタデータオプション を説明します。 利用可能な Meta オプション abstract Options. abstract abstract = True の場合、このモデルは 抽象 ... answer . get_next_in_order () <Answer: 3> >>> answer . get_previous_in_order () <Answer: 1> order_with_respect_to は暗黙で ordering オプションを設定します。 内部的には、 order_with_respect_to は _order という追加のフィールド/データベースカラムを追加し、モ ... デルの ordering オプションをこのフィールドに設定します。そのため、 order_with_respect_to と ordering を一緒に使用することはできません。また ... ションの migrate の後に order_with_respect_to を追加または変更する場合は、適切なマイグレーションを作成して適用してください。 ordering Options. ordering オブジェクトのリストを取得するときに使用する、オブジェクトのデフォルトの順序: ordering = [ "-order_date" ...
https://man.mtool.work/django/6.1/ref/models/options.html
Django 2.0.7 リリースノート 10126
Django 2.0.7 リリースノート 2018年7月2日 Django 2.0.7 では、2.0.6 にあったいくつかのバグを修正しました。 バグ修正 Fixed admin changelist crash when using a query expression without asc() or desc() in the page's ordering ( #29428 ). Fixed ad ... min check crash when using a query expression in ModelAdmin.ordering ( #29428 ). Fixed __regex and __iregex lookups with MySQL 8 ( #29451 ). Fixed migrations crash with namespace packages on ...
https://man.mtool.work/django/6.1/releases/2.0.7.html
QuerySet API リファレンス 9845
QuerySet API リファレンス このドキュメントでは、 QuerySet API の詳細を説明しています。 モデル と データベースクエリ ガイドにある説明を前提としていますので、このドキュメントを読む前にこの 2 つを読んでおくことをおすすめします。 このリファレン ... ブリックな属性を持っています: ordered [ソース] True if the QuerySet is ordered — i.e. has an order_by() clause or a default ordering on the model. False otherwise. totally_ordered [ソース] New in Django 6.1. Returns True if the QuerySet is ordered and the ... ordering is deterministic. This requires that the ordering includes a field (or set of fields) that is unique and non-nullable. For ... queries involving a GROUP BY clause, the model's default ordering is ignored. Ordering specified via .extra(order_by=...) is also ignored. db [ソース] このクエリが実行されるデータベースを示 ...
https://man.mtool.work/django/6.1/ref/models/querysets.html
Django の admin サイト 9402
Django の admin サイト Django のパワフルな特徴の1つは、自動的に生成される admin インタフェースです。あなたのモデルクラスからメタデータを読み取り、モデル中心のインタフェースを提供します。このインタフェースのおかげで、ユーザはあなたのサイトの ... ためです)。 しかし、 list_display の要素が特定のデータベースフィールドを表す場合、メソッドに display() デコレータを使用し、 ordering 引数を渡すことで、その事実を伝えることができます。 from django.contrib import admin from django.db import models from djan ... first_name = models . CharField ( max_length = 50 ) color_code = models . CharField ( max_length = 6 ) @admin . display ( ordering = "first_name" ) def colored_first_name ( self ): return format_html ( '<span style="color: # {} ;"> {} </span>' , self . ... は、admin 内で colored_first_name で ソートしようとするとき、 first_name フィールドで並べ替えるよう Django に伝えます。 引数 ordering で降順を示すには、フィールド名の前にハイフンをつけます。上記の例を使うと、次のようになります。 @admin . display ( ordering ...
https://man.mtool.work/django/6.1/ref/contrib/admin/
Django 3.1.2 リリースノート 9269
Django 3.1.2 リリースノート October 1, 2020 Django 3.1.2 では、3.1.1 におけるいくつかのバグを修正しました。 バグ修正 Fixed a bug in Django 3.1 where FileField instances with a callable storage were not correctly deconstructed ( #31941 ). Fi ... QuerySet.ordered attribute returned incorrectly True for GROUP BY queries (e.g. .annotate().values() ) on models with Meta.ordering . A model's Meta.ordering doesn't affect such queries ( #31990 ). Fixed a regression in Django 3.1 where a queryset would ...
https://man.mtool.work/django/6.1/releases/3.1.2.html
Django 2.2 リリースノート 9121
Django 2.2 リリースノート April 1, 2019 Django 2.2 へようこそ! このリリースノートでは、 バージョン 2.2 の新機能 と、Django 2.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... for the Envelope function. Added SpatiaLite support for the coveredby and covers lookups. django.contrib.postgres The new ordering argument for ArrayAgg and StringAgg determines the ordering of the aggregated elements. The new BTreeIndex , HashIndex and ... rd references automatically. テスト The new SimpleTestCase.assertURLEqual() assertion checks for a given URL, ignoring the ordering of the query string. assertRedirects() uses the new assertion. The test Client now supports automatic JSON serialization o ... taining different plural equations for the same language was added in Django 2.2.12. Features deprecated in 2.2 Model Meta.ordering will no longer affect GROUP BY queries A model's Meta.ordering affecting GROUP BY queries (such as .annotate().values() ) ...
https://man.mtool.work/django/6.1/releases/2.2.html
フォームセット (Formset) 9121
フォームセット (Formset) class BaseFormSet [ソース] フォームセットは、同じページで複数のフォームを扱うための抽象レイヤーです。データグリッドに例えるとわかりやすいでしょう。次のようなフォームがあるとしましょう: >>> from django import forms > ... ate(2008, 5, 11), 'ORDER': 1} {'title': 'Article #1', 'pub_date': datetime.date(2008, 5, 10), 'ORDER': 2} BaseFormSet には ordering_widget 属性と get_ordering_widget() メソッドがあり、 can_order で使用するウィジェットを制御します。 ordering_widget BaseFo ... rmSet. ordering_widget デフォルト値: NumberInput ordering_widget をセットすると、 can_order で使用するウィジェットクラスを指定できます: >> ... rt BaseFormSet , formset_factory >>> from myapp.forms import ArticleForm >>> class BaseArticleFormSet ( BaseFormSet ): ... ordering_widget = HiddenInput ... >>> ArticleFormSet = formset_factory ( ... ArticleForm , formset = BaseArticleFormSet , can_order ...
https://man.mtool.work/django/6.1/topics/forms/formsets.html
Django 2.2.2 リリースノート 8692
Django 2.2.2 リリースノート June 3, 2019 Django 2.2.2 fixes security issues and several bugs in 2.2.1. CVE-2019-12308: AdminURLFieldWidget XSS The clickable "Current URL" link generated by AdminURLFieldWidget displayed the provided value wi ... on dynamically added admin inlines ( #30459 ). Fixed a regression in Django 2.2 where deprecation message crashes if Meta.ordering contains an expression ( #30463 ). Fixed a regression in Django 2.2.1 where SearchVector generates SQL with a redundant Co ... er doesn't detect changes in manage.py file when using StatReloader ( #30479 ). Fixed crash of ArrayAgg and StringAgg with ordering argument when used in a Subquery ( #30315 ). Fixed a regression in Django 2.2 that caused a crash of auto-reloader when an ...
https://man.mtool.work/django/6.1/releases/2.2.2.html
Django 1.0.1 リリースノート 8544
Django 1.0.1 リリースノート Django 1.0.1 へようこそ! This is the first "bugfix" release in the Django 1.0 series, improving the stability and performance of the Django 1.0 codebase. As such, Django 1.0.1 contains no new features (and, pursu ... t here are some of the highlights: Several fixes in django.contrib.comments , pertaining to RSS feeds of comments, default ordering of comments and the XHTML and internationalization of the default templates for comments. Multiple fixes for Django's supp ... bases. Several fixes for query support in the Django object-relational mapper, including repeated setting and resetting of ordering and fixes for working with INSERT -only queries. Multiple fixes for inline forms in formsets. Multiple fixes for unique an ...
https://man.mtool.work/django/6.1/releases/1.0.1.html
PREV 1 2 3 4 5 6 NEXT