per page, with , order by , clip by
Results of 1 - 2 of about 2 for stringfilter (0.004 sec.)
独自のテンプレートタグとフィルタを作る 11228
独自のテンプレートタグとフィルタを作る Django のテンプレート言語は、アプリケーションのプレゼンテーションロジックのニーズに対応するように設計された、多種多様な 埋め込みタグやフィルタ を搭載しています。それでもなお、テンプレート構成要素のコア ... ケープ と フィルタとタイムゾーン の中で説明されています。 文字列を要するテンプレートフィルタ django.template.defaultfilters. stringfilter () 第 1 引数として文字数を要求するだけのテンプレートフィルタを記述している場合、デコレータ stringfilter を使う必要がありま ... 関数に渡される前にオブジェクトを文字列に変換します。 from django import template from django.template.defaultfilters import stringfilter register = template . Library () @register . filter @stringfilter def lower ( value ): return value . lower () これにより、 ...
https://man.mtool.work/django/6.1/howto/custom-template-tags.html
Django 1.4 リリースノート 7485
Django 1.4 リリースノート March 23, 2012 Django 1.4 へようこそ! These release notes cover the new features , as well as some backwards incompatible changes you'll want to be aware of when upgrading from Django 1.3 or older versions. We've a ... eturn value noop . is_safe = True However, this technique caused some problems in combination with decorators, especially @stringfilter . Now, the flags are keyword arguments of @register.filter : @register . filter ( is_safe = True ) def noop ( value ): ret ...
https://man.mtool.work/django/6.1/releases/1.4.html
PREV 1 NEXT