per page, with , order by , clip by
Results of 1 - 10 of about 30 for lower (0.009 sec.)
QuerySet API リファレンス 12347
QuerySet API リファレンス このドキュメントでは、 QuerySet API の詳細を説明しています。 モデル と データベースクエリ ガイドにある説明を前提としていますので、このドキュメントを読む前にこの 2 つを読んでおくことをおすすめします。 このリファレン ... はできません。Djangoは使用するデータベースバックエンドが通常このCase-sensitiveをどのように扱うかに従って結果を並び替えます。 Lower によって小文字に変換したフィールドで並び替えることで、一貫したルールでの並び替えを実現できます: Entry . objects . order_by ... ( Lower ( "headline" ) . desc ()) If you don't want any ordering to be applied to a query, not even the default ordering, call ord ... ョンでキーワード引数 **expressions を受け取り、 annotate() に渡すこともできます: >>> from django.db.models.functions import Lower >>> Blog . objects . values ( lower_name = Lower ( "name" )) <QuerySet [{'lower_name': 'beatles blog'}]> ソートには、組み込 ...
https://man.mtool.work/django/6.1/ref/models/querysets.html
独自のテンプレートタグとフィルタを作る 11648
独自のテンプレートタグとフィルタを作る Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された、多種多様な 埋め込みタグやフィルタ を搭載しています。それでもなお、テンプレート構成要素のコア ... somevariable | cut :"0" }} ほとんどのフィルタは引数を取りません。この場合、次のように関数の第2引数を省略してください: def lower ( value ): # Only one argument. """Converts a string into all lowercase""" return value . lower () 独自のフィルタを登録する ... きるようにするため、 Library のインスタンスに登録する必要があります。 register . filter ( "cut" , cut ) register . filter ( "lower" , lower ) Library.filter() メソッドは 2 つの引数を取ります: フィルタの名前 -- 文字列です。 編集用の関数 -- Python の関数で ... す。 @register . filter ( name = "cut" ) def cut ( value , arg ): return value . replace ( arg , "" ) @register . filter def lower ( value ): return value . lower () name 引数を省略した場合、上記の 2 番目の例と同じように、Django はフィルタ名として関数の ...
https://man.mtool.work/django/6.1/howto/custom-template-tags.html
データベース関数 10933
データベース関数 The classes documented below provide a way for users to use functions provided by the underlying database as annotations, aggregations, or filters in Django. Functions are also expressions , so they can be used and combined ... 含む JSON 配列を返します。 使用例: >>> from django.db.models import F >>> from django.db.models.functions import JSONArray , Lower >>> Author . objects . create ( name = "Margaret Smith" , alias = "msmith" , age = 25 ) >>> author = Author . objects . an ... notate ( ... json_array = JSONArray ( ... Lower ( "name" ), ... "alias" , ... F ( "age" ) * 2 , ... ) ... ) . get () >>> author . json_array ['margaret smith', 'msmith', ... オブジェクトを返します。 使用例: >>> from django.db.models import F >>> from django.db.models.functions import JSONObject , Lower >>> Author . objects . create ( name = "Margaret Smith" , alias = "msmith" , age = 25 ) >>> author = Author . objects . an ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
クエリ式 (Query Expression) 10933
クエリ式 (Query Expression) クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値または計算を記述します。式が真偽値を出力する場合、フィルタで直接使用できます。クエリの記述に使用 ... m django.db.models import F Company . objects . update ( is_active =~ F ( "is_active" )) Func() 式 Func() 式は COALESCE や LOWER のようなデータベース関数や、 SUM のような集計を含むすべての式の基本型です。これらは直接使用できます: from django.db.models ... import F , Func queryset . annotate ( field_lower = Func ( F ( "field" ), function = "LOWER" )) または、データベース関数のライブラリを構築するためにも使用できます: class Lo ... wer ( Func ): function = "LOWER" queryset . annotate ( field_lower = Lower ( "field" )) しかし、どちらの場合も、モデルが追加の属性 field_lower でアノテーシ ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
PostgreSQL 固有のモデルインデックス 9991
PostgreSQL 固有のモデルインデックス 以下はPostgreSQL固有の django.contrib.postgres.indexes モジュールから利用可能な インデックス です。 BloomIndex class BloomIndex ( * expressions , length = None , columns = () , ** options ) [ソース] bloom ... o.contrib.postgres' を追加する必要があります。 name パラメータを operator class の名前に設定します。 例: Index ( OpClass ( Lower ( "username" ), name = "varchar_pattern_ops" ), name = "lower_username_idx" , ) varchar_pattern_ops を使用して Lower('user ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/indexes.html
PostgreSQL 固有のモデルフィールド 9520
PostgreSQL 固有のモデルフィールド これらのフィールドは全て django.contrib.postgres.fields モジュールから利用できます。 これらのフィールドにインデックスを付ける Index と Field.db_index は両方とも B-tree インデックスを作成しますが、複雑なデー ... です。 BooleanField の有効なルックアップに連結できます。 >>> Event . objects . filter ( ages__isempty = True ) <QuerySet []> lower_inc 与えられた真偽値に基づき、包含もしくは非包含な下限値を持つオブジェクトを返します。 BooleanField の有効なルックアップに ... 連結できます。 >>> Event . objects . filter ( ages__lower_inc = True ) <QuerySet [<Event: Soft play>, <Event: Pub trip>]> lower_inf 渡された真偽値に応じて、無限大または有界下限境界 ... を持つオブジェクトを返します。 BooleanField に対して有効なルックアップに連結できます。 >>> Event . objects . filter ( ages__lower_inf = True ) <QuerySet []> upper_inc 渡されたブール値に応じて、上限値を包含または非包含として持つオブジェクトを返します。こ ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/fields.html
Django 1.11.27 リリースノート 9049
Django 1.11.27 リリースノート December 18, 2019 Django 1.11.27 fixes a security issue and a data loss bug in 1.11.26. CVE-2019-19844: Potential account hijack via password reset form By submitting a suitably crafted email address making use ... of Unicode characters, that compared equal to an existing user email when lower-cased for comparison, an attacker could be sent a password reset token for the matched account. In order to avoid this vul ...
https://man.mtool.work/django/6.1/releases/1.11.27.html
Django 2.2.9 リリースノート 9049
Django 2.2.9 リリースノート December 18, 2019 Django 2.2.9 fixes a security issue and a data loss bug in 2.2.8. CVE-2019-19844: Potential account hijack via password reset form By submitting a suitably crafted email address making use of Un ... icode characters, that compared equal to an existing user email when lower-cased for comparison, an attacker could be sent a password reset token for the matched account. In order to avoid this vul ...
https://man.mtool.work/django/6.1/releases/2.2.9.html
Django 3.0.1 リリースノート 8350
Django 3.0.1 リリースノート December 18, 2019 Django 3.0.1 では、セキュリティの問題1件と 3.0 におけるいくつかのバグを修正しました。 CVE-2019-19844: Potential account hijack via password reset form By submitting a suitably crafted email addr ... ess making use of Unicode characters, that compared equal to an existing user email when lower-cased for comparison, an attacker could be sent a password reset token for the matched account. In order to avoid this vul ...
https://man.mtool.work/django/6.1/releases/3.0.1.html
索引 8106
索引 記号 | _ | A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | ア | イ | ク | コ | シ | ス | テ | ハ | ヒ | フ | メ | モ | ロ | 具 | 国 | 環 | 翻 | 表 | 言 | 長 記号 -- dbshell コマン ... contained_by rangefield.contains rangefield.endswith rangefield.fully_gt rangefield.fully_lt rangefield.isempty rangefield.lower_inc rangefield.lower_inf rangefield.not_gt rangefield.not_lt rangefield.overlap rangefield.startswith rangefield.upper_inc ... UniqueConstraint の属性) include() (django.urls モジュール) inclusion_tag() (django.template.Library のメソッド) inclusive_lower (RangeBoundary の属性) inclusive_upper (RangeBoundary の属性) incr() (cache のメソッド) Index (django.db.models のクラス) ... erMatch の属性) L label (AppConfig の属性) (BoundField の属性) (Field の属性) (LabelCommand の属性) (Options の属性) label_lower (Options の属性) label_suffix (Field の属性) (Form の属性) label_tag() (BoundField のメソッド) LabelCommand (django.core.m ...
https://man.mtool.work/django/6.1/genindex.html
PREV 1 2 3 NEXT