per page, with , order by , clip by
Results of 1 - 2 of about 2 for employees (0.004 sec.)
クエリ式 (Query Expression) 11228
クエリ式 (Query Expression) クエリ式 (query expression) は、update、create、filter、order by、annotation、またはaggregateの一部として使用できる値または計算を記述します。式が真偽値を出力する場合、フィルタで直接使用できます。クエリの記述に使用 ... odels.functions import Length , Upper >>> from django.db.models.lookups import GreaterThan # Find companies that have more employees than chairs. >>> Company . objects . filter ( num_employees__gt = F ( "num_chairs" )) # Find companies that have at least ... twice as many employees # as chairs. Both the querysets below are equivalent. >>> Company . objects . filter ( num_employees__gt = F ( "num_chairs ... " ) * 2 ) >>> Company . objects . filter ( num_employees__gt = F ( "num_chairs" ) + F ( "num_chairs" )) # How many chairs are needed for each company to seat all employees? >>> co ...
https://man.mtool.work/django/6.1/ref/models/expressions.html
組み込みテンプレートタグとフィルタ 7485
組み込みテンプレートタグとフィルタ このドキュメントでは、 Django の組み込みテンプレートタグとフィルタについて述べます。 また 自動ドキュメンテーション を使えばインストールされている組み込みタグとカスタムタグのドキュメントを読めるのでお勧めで ... 高いメソッド (たとえばデータベースを操作するようなメソッド) に何度もアクセスする際に便利です。 例: {% with total = business.employees.count %} {{ total }} employee {{ total | pluralize }} {% endwith %} 値を組み込んだ変数 (上の例でいえば total ) は {% with ... とができます: {% with alpha = 1 beta = 2 %} ... {% endwith %} 注釈 従来の冗長な書式もサポートされています: {% with business.employees.count as total %} 組み込みフィルタリファレンス add 入力値に対して引数の値を加算します。 例: {{ value | add :"2" }} value が ...
https://man.mtool.work/django/6.1/ref/templates/builtins.html
PREV 1 NEXT