per page, with , order by , clip by
Results of 1 - 10 of about 30 for upper (0.003 sec.)
カスタムのルックアップを書く 12135
カスタムのルックアップを書く Django には (たとえば exact や icontains などの) フィルタリングを行う 組み込みのルックアップ がたくさんあります。このドキュメントでは、カスタムルックアップを作る方法や、既存のルックアップの動作を変更する方法につ ... ィスとしては良い例ではありません。しかし、データベースにとらわれない双方向のトランスフォームとしては良い例でしょう。 SQL関数 UPPER() を使用して比較前に値を変換する UpperCase トランスフォーマーを定義します。 bilateral = True を定義して、この変換が lhs と ... rhs の両方に適用されることを示します: from django.db.models import Transform class UpperCase ( Transform ): lookup_name = "upper" function = "UPPER" bilateral = True 次に、それを登録しましょう: from django.db.mo ... dels import CharField , TextField CharField . register_lookup ( UpperCase ) TextField . register_lookup ( UpperCase ) これで、 Author.objects.filter(name__upper="doe") は次のような大文字小文字 ...
https://man.mtool.work/django/6.1/howto/custom-lookups.html
PostgreSQL 固有のモデルインデックス 11242
PostgreSQL 固有のモデルインデックス 以下はPostgreSQL固有の django.contrib.postgres.indexes モジュールから利用可能な インデックス です。 BloomIndex class BloomIndex ( * expressions , length = None , columns = () , ** options ) [ソース] bloom ... sername_idx" , ) varchar_pattern_ops を使用して Lower('username') にインデックスを作成します: UniqueConstraint ( OpClass ( Upper ( "description" ), name = "text_pattern_ops" ), name = "upper_description_unique" , ) Upper('description') を使って text_p ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/indexes.html
PostgreSQL 固有のモデルフィールド 10641
PostgreSQL 固有のモデルフィールド これらのフィールドは全て django.contrib.postgres.fields モジュールから利用できます。 これらのフィールドにインデックスを付ける Index と Field.db_index は両方とも B-tree インデックスを作成しますが、複雑なデー ... leanField に対して有効なルックアップに連結できます。 >>> Event . objects . filter ( ages__lower_inf = True ) <QuerySet []> upper_inc 渡されたブール値に応じて、上限値を包含または非包含として持つオブジェクトを返します。これは、 BooleanField に対して有効 ... なルックアップに連結できます。 >>> Event . objects . filter ( ages__upper_inc = True ) <QuerySet []> upper_inf 渡された真偽値に応じて、上限が無制限 (無限) または有界のオブジェクトを返します。 Bool ... eanField の有効なルックアップに連結できます。 >>> Event . objects . filter ( ages__upper_inf = True ) <QuerySet [<Event: Pub trip>]> 独自の範囲型を定義する PostgreSQLでは、独自の範囲型の定義が可能です。Djangoのモ ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/fields.html
Django 4.2.18 リリースノート 10040
Django 4.2.18 リリースノート 2025年2月14日 Django 4.2.18 では 4.2.17 における深刻度 "moderate" のセキュリティの問題を修正しました。 CVE-2024-56374: IPv6 検証における潜在的な DoS 攻撃の脆弱性 Lack of upper bound limit enforcement in strings ...
https://man.mtool.work/django/6.1/releases/4.2.18.html
Django 5.0.11 リリースノート 10040
Django 5.0.11 リリースノート 2025年2月14日 Django 5.0.11 では 5.0.10 における深刻度 "moderate" のセキュリティの問題を修正しました。 CVE-2024-56374: IPv6 検証における潜在的な DoS 攻撃の脆弱性 Lack of upper bound limit enforcement in strings ...
https://man.mtool.work/django/6.1/releases/5.0.11.html
Django 5.1.5 リリースノート 9731
Django 5.1.5 リリースノート 2025年2月14日 Django 5.1.5 では 5.1.4 における深刻度 "moderate" のセキュリティの問題とバグを修正しました。 CVE-2024-56374: IPv6 検証における潜在的な DoS 攻撃の脆弱性 Lack of upper bound limit enforcement in strin ...
https://man.mtool.work/django/6.1/releases/5.1.5.html
Django 4.2.17 リリースノート 9422
Django 4.2.17 リリースノート 2024年12月4日 Django 4.2.17 では 4.2.16 におけるセキュリティの問題のうち 深刻度 "high" 1件と深刻度 "moderate" 1件を修正しました。 CVE-2024-53907: strip_tags() における DoS 攻撃の可能性 strip_tags() would be extr ... is used to implement the corresponding striptags template filter, which was thus also vulnerable. strip_tags() now has an upper limit of recursive calls to HTMLParser before raising a SuspiciousOperation exception. Remember that absolutely NO guarant ...
https://man.mtool.work/django/6.1/releases/4.2.17.html
Django 5.0.10 リリースノート 9422
Django 5.0.10 リリースノート 2024年12月4日 Django 5.0.10 では 5.0.9 におけるセキュリティの問題のうち 深刻度 "high" 1件と深刻度 "moderate" 1件を修正しました。 CVE-2024-53907: strip_tags() における DoS 攻撃の可能性 strip_tags() would be extre ... is used to implement the corresponding striptags template filter, which was thus also vulnerable. strip_tags() now has an upper limit of recursive calls to HTMLParser before raising a SuspiciousOperation exception. Remember that absolutely NO guarant ...
https://man.mtool.work/django/6.1/releases/5.0.10.html
データベース関数 9130
データベース関数 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 ... >>> Author . objects . update ( name = Trim ( "name" )) 1 >>> print ( Author . objects . get ( alias = "j" ) . name ) John Upper class Upper ( expression , ** extra ) [ソース] 単一のテキストフィールドまたは式を受け取り、大文字の表現を返します。 Length ... と同様に、トランスフォームとして登録することもできます。 使用例: >>> from django.db.models.functions import Upper >>> Author . objects . create ( name = "Margaret Smith" ) >>> author = Author . objects . annotate ( name_upper = Upper ( ... "name" )) . get () >>> print ( author . name_upper ) MARGARET SMITH UUID functions UUID4 New in Django 6.1. class UUID4 [ソース] Generates a version 4 UUID , which is random ...
https://man.mtool.work/django/6.1/ref/models/database-functions.html
Django 5.1.4 リリースノート 9130
Django 5.1.4 リリースノート 2024年12月4日 Django 5.1.4 では、 5.1.3 におけるセキュリティの問題のうち深刻度 "high" 1件、深刻度 "moderate" 1件を含め、いくつかのバグを修正しました。 CVE-2024-53907: strip_tags() における DoS 攻撃の可能性 strip_ ... is used to implement the corresponding striptags template filter, which was thus also vulnerable. strip_tags() now has an upper limit of recursive calls to HTMLParser before raising a SuspiciousOperation exception. Remember that absolutely NO guarant ...
https://man.mtool.work/django/6.1/releases/5.1.4.html
PREV 1 2 3 NEXT