Results of 1 - 10 of about 11 for UpperCase (0.007 sec.)
- カスタムのルックアップを書く 12144
- カスタムのルックアップを書く 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.models ... 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
- Django 5.2.15 release notes 10224
- Django 5.2.15 release notes June 3, 2026 Django 5.2.15 fixes five security issues with severity "low" in 5.2.14. CVE-2026-6873: Signed cookie salt namespace collision get_signed_cookie() derived the signing salt by concatenating the cookie
... eMiddleware and cache_page() incorrectly cached responses marked with private Cache-Control directives when using mixed or uppercase values (e.g. Private ). The cache_control() decorator and patch_cache_control() function were not affected, since they nor ...
-
https://man.mtool.work/django/6.1/releases/5.2.15.html
- Django 1.4.18 リリースノート 9744
- Django 1.4.18 リリースノート January 13, 2015 Django 1.4.18 fixes several security issues in 1.4.17 as well as a regression on Python 2.5 in the 1.4.17 release. WSGI header spoofing via underscore/dash conflation When HTTP headers are place
... d into the WSGI environ, they are normalized by converting to uppercase, converting all dashes to underscores, and prepending HTTP_ . For instance, a header X-Auth-User would become HTTP_X_AUTH_ ...
-
https://man.mtool.work/django/6.1/releases/1.4.18.html
- Django 1.6.10 リリースノート 9744
- Django 1.6.10 リリースノート January 13, 2015 Django 1.6.10 fixes several security issues in 1.6.9. WSGI header spoofing via underscore/dash conflation When HTTP headers are placed into the WSGI environ, they are normalized by converting to
... uppercase, converting all dashes to underscores, and prepending HTTP_ . For instance, a header X-Auth-User would become HTTP_X_AUTH_ ...
-
https://man.mtool.work/django/6.1/releases/1.6.10.html
- Django 6.0.6 release notes 9744
- Django 6.0.6 release notes June 3, 2026 Django 6.0.6 fixes five security issues with severity "low" and one bug in 6.0.5. Also, the latest string translations from Transifex are incorporated. CVE-2026-6873: Signed cookie salt namespace coll
... eMiddleware and cache_page() incorrectly cached responses marked with private Cache-Control directives when using mixed or uppercase values (e.g. Private ). The cache_control() decorator and patch_cache_control() function were not affected, since they nor ...
-
https://man.mtool.work/django/6.1/releases/6.0.6.html
- Django 1.7.3 リリースノート 9282
- Django 1.7.3 リリースノート January 13, 2015 Django 1.7.3 fixes several security issues and bugs in 1.7.2. WSGI header spoofing via underscore/dash conflation When HTTP headers are placed into the WSGI environ, they are normalized by conver
... ting to uppercase, converting all dashes to underscores, and prepending HTTP_ . For instance, a header X-Auth-User would become HTTP_X_AUTH_ ...
-
https://man.mtool.work/django/6.1/releases/1.7.3.html
- Django 1.7.1 リリースノート 8801
- Django 1.7.1 リリースノート October 22, 2014 Django 1.7.1 fixes several bugs in 1.7. バグ修正 Allowed related many-to-many fields to be referenced in the admin ( #23604 ). Added a more helpful error message if you try to migrate an app with
... trailing dot removed, #23532 ). Added quoting of constraint names in the SQL generated by migrations to prevent crash with uppercase characters in the name ( #23065 ). Fixed renaming of models with a self-referential many-to-many field ( ManyToManyField(' ...
-
https://man.mtool.work/django/6.1/releases/1.7.1.html
- Django 6.1.2 release notes 8801
- Django 6.1.2 release notes October 6, 2026 Django 6.1.2 fixes one security issue with severity "low", three security issues with severity "moderate", and provides a fix for an insufficient security mitigation in 6.1. It also fixes one data
... warned that null has no effect on GeneratedField ( #37348 ). Fixed a bug in Django 6.1 where the UUID4 function persisted uppercase values on Oracle. Any data already created using this function on Oracle should be migrated to lowercase so that it can be ...
-
https://man.mtool.work/django/6.1/releases/6.1.2.html
- Coding style 7361
- Coding style Please follow these coding standards when writing code for inclusion in Django. Pre-commit checks pre-commit is a framework for managing pre-commit hooks. These hooks help to identify simple issues before committing code for re
... rom .foo import Bar ) for local components. Avoid multi-dot relative imports. On each line, alphabetize the items with the upper case items grouped before the lowercase items. Break long lines using parentheses and indent continuation lines by 4 spaces. I ... olute_url() Any custom methods If choices is defined for a given model field, define each choice as a mapping, with an all-uppercase name as a class attribute on the model. Example: class MyModel ( models . Model ): DIRECTION_UP = "U" DIRECTION_DOWN = "D" ...
-
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
- 独自のテンプレートタグとフィルタを作る 5921
- 独自のテンプレートタグとフィルタを作る Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された、多種多様な 埋め込みタグやフィルタ を搭載しています。それでもなお、テンプレート構成要素のコア
... プレートタグ {% upper %} で、それ自身と {% endupper %} の間をすべて大文字にします。 使い方: {% upper %} This will appear in uppercase, {{ your_name }} . {% endupper %} 上の例と同様に parser.parse() を使いますが、今回は次のように、結果の nodelist を Node に ...
-
https://man.mtool.work/django/6.1/howto/custom-template-tags.html