per page, with , order by , clip by
Results of 1 - 10 of about 20 for plural (0.005 sec.)
管理アクション 14274
管理アクション Djangoの管理者の基本的な仕事は、一言で言えば、「オブジェクトを選択し、それを変更する」ことに尽きます。これは大多数のユースケースに当てはまります。しかし、一度に多くのオブジェクトに同じ変更を適用する必要がある場合、この仕事は退 ... action ( location = [ ActionLocation . CHANGE_FORM , ActionLocation . CHANGE_LIST ], description = "Publish" , description_plural = "Mark selected stories as published" , ) def make_published ( modeladmin , request , queryset ): ... Notice that descrip ... tion and description_plural were provided. These are optional but the admin action will be labeled by description in the admin change form and descrip ... tion_plural in the admin change list. You can customize how actions are rendered by overriding admin templates. The change list page u ...
https://man.mtool.work/django/6.1/ref/contrib/admin/actions.html
翻訳 10128
翻訳 概要 Django プロジェクトを翻訳可能にするためには、Python コードやテンプレートに、多少のフックを加筆しなければなりません。このフックは 翻訳文字列 と呼ばれます。翻訳文字列は Django に「このテキストに対する翻訳が有効な場合、このテキストは ... 列が表示されるとき) で翻訳される必要があるからです。 複数形 Use the function django.utils.translation.ngettext() to specify pluralized messages. ngettext は 3 つの引数を取ります: 単数形の文字列、複数形の文字列、オブジェクトの数です。 この関数は、Django ... port . objects . count () if count == 1 : name = Report . _meta . verbose_name else : name = Report . _meta . verbose_name_plural text = ngettext ( "There is %(count)d %(name)s available." , "There are %(count)d %(name)s available." , count , ) % { "co ... で間違っている以外に、失敗するでしょう: text = ngettext ( "There is %(count)d %(name)s available." , "There are %(count)d %(plural_name)s available." , count , ) % { "count" : Report . objects . count (), "name" : Report . _meta . verbose_name , "plural ...
https://man.mtool.work/django/6.1/topics/i18n/translation.html
Django 2.2.12 リリースノート 9958
Django 2.2.12 リリースノート April 1, 2020 Django 2.2.12 fixes a bug in 2.2.11. バグ修正 Added the ability to handle .po files containing different plural equations for the same language ( #30439 ). ...
https://man.mtool.work/django/6.1/releases/2.2.12.html
Django 1.10.5 リリースノート 9601
Django 1.10.5 リリースノート January 4, 2017 Django 1.10.5 fixes several bugs in 1.10.4. バグ修正 Fixed a crash in the debug view if request.user can't be retrieved, such as if the database is unavailable ( #27567 ). Fixed occasional missin ... g plural forms in JavaScriptCatalog ( #27418 ). Fixed a regression in the timesince and timeuntil filters that caused incorrect res ...
https://man.mtool.work/django/6.1/releases/1.10.5.html
Django 3.0.5 リリースノート 9601
Django 3.0.5 リリースノート April 1, 2020 Django 3.0.5 では、3.0.4 におけるいくつかのバグを修正しました。 バグ修正 Added the ability to handle .po files containing different plural equations for the same language ( #30439 ). Fixed a regress ...
https://man.mtool.work/django/6.1/releases/3.0.5.html
Django ユーティリティ (django.utils) 9057
Django ユーティリティ ( django.utils ) このドキュメントは、 django.utils のすべての安定したモジュールを対象としています。 django.utils 内のほとんどのモジュールは内部使用を目的としていることから、 内部リリース非推奨ポリシー に従い、以下に記載 ... 語のままにする必要があるグローバル変数に文字列を保持するために使えます。そして、後の時点で翻訳します。 ngettext ( singular , plural , number ) [ソース] number に基づいて、 singular と plural を翻訳し、適切な文字列を返します。 npgettext ( context , singul ... ar , plural , number ) [ソース] singular と plural を翻訳し、 number と context に基づいて適切な文字列を返します。 ngettext_lazy ( sin ... gular , plural , number ) [ソース] npgettext_lazy ( context , singular , plural , number ) [ソース] 上述の lazy ではないものと同じですが、 ...
https://man.mtool.work/django/6.1/ref/utils.html
Django 2.2.13 リリースノート 9057
Django 2.2.13 リリースノート June 3, 2020 Django 2.2.13 fixes two security issues and a regression in 2.2.12. CVE-2020-13254: Potential data leakage via malformed memcached keys In cases where a memcached backend does not perform key valida ... ps providing translations for territorial language variants as well as a generic language, where the project has different plural equations for the language ( #31570 ). Tracking a jQuery security release, upgraded the version of jQuery used by the admi ...
https://man.mtool.work/django/6.1/releases/2.2.13.html
Django 3.0.7 リリースノート 8700
Django 3.0.7 リリースノート June 3, 2020 Django 3.0.7 では、3.0.6 の2つのセキュリティの問題といくつかのバグを修正しました。 CVE-2020-13254: Potential data leakage via malformed memcached keys In cases where a memcached backend does not perf ... ps providing translations for territorial language variants as well as a generic language, where the project has different plural equations for the language ( #31570 ). Tracking a jQuery security release, upgraded the version of jQuery used by the admi ...
https://man.mtool.work/django/6.1/releases/3.0.7.html
モデルの Meta オプション 8513
モデルの Meta オプション このドキュメントでは、モデル内部の class Meta 内でモデルに与えられる、すべての可能な メタデータオプション を説明します。 利用可能な Meta オプション abstract Options. abstract abstract = True の場合、このモデルは 抽象 ... e = "pizza" 指定されない場合、 Django はクラス名を小文字にして使います。 CamelCase は camel case になります。 verbose_name_plural Options. verbose_name_plural オブジェクトの名前の複数形: verbose_name_plural = "stories" 指定されない場合、 Django は verb ...
https://man.mtool.work/django/6.1/ref/models/options.html
Coding style 8326
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 ... name = models . CharField ( max_length = 20 ) last_name = models . CharField ( max_length = 40 ) class Meta : verbose_name_plural = "people" Don't do this: class Person ( models . Model ): class Meta : verbose_name_plural = "people" first_name = models ...
https://man.mtool.work/django/6.1/internals/contributing/writing-code/coding-sty...
PREV 1 2 NEXT