per page, with , order by , clip by
Results of 1 - 10 of about 96 for empty (0.003 sec.)
フォーム フィールド 12410
フォーム フィールド class Field [ソース] Form クラスを作成時の一番重要な部分は、form のフィールド (field) の定義です。各フィールドにはカスタムの検証ロジックがあり、他にいくつかのフックもあります。 Field. clean ( value ) [ソース] Field クラス ... 値を渡した場合、 clean() は ValidationError を発生させる代わりに、 正規化された 空の値を返します。 CharField の場合、これは empty_value を返し、デフォルトでは空の文字列となります。他の Field クラスでは、 None になることもあります。(これはフィールドによ ... r-casing the first letter. Specify a string for label if that default behavior doesn't result in an adequate label. Use an empty string ( "" ) to hide the label. 以下は、2 つのフィールドに対して label を実装する Form の完全な例です。出力を簡略化するた ... 渡すことを忘れないでください。 CharField class CharField ( ** kwargs ) [ソース] デフォルトのウィジェット: TextInput 空の値: empty_value として与えたもの 正規化後の値: 文字列になります。 max_length と min_length が与えられた場合は、 MaxLengthValidator と ...
https://man.mtool.work/django/6.1/ref/forms/fields.html
クラスベースのジェネリックビュー: フラットインデックス 12292
クラスベースのジェネリックビュー: フラットインデックス この索引は、クラスベースビューのリファレンス文書を、異なる観点から編成したものです。ビューごとに、クラスツリーの有効な属性とメソッドが表されます。動作を定義するクラスの観点から編集された ... ethod_not_allowed() render_to_response() setup() リストビュー ListView class ListView 属性 (とオプションのアクセサ): allow_empty [ get_allow_empty() ] content_type context_object_name [ get_context_object_name() ] extra_context http_method_names model ... nder_to_response() setup() 日付ベースのビュー ArchiveIndexView class ArchiveIndexView 属性 (とオプションのアクセサ): allow_empty [ get_allow_empty() ] allow_future [ get_allow_future() ] content_type context_object_name [ get_context_object_name() ] d ... aginate_queryset() render_to_response() setup() YearArchiveView class YearArchiveView 属性 (とオプションのアクセサ): allow_empty [ get_allow_empty() ] allow_future [ get_allow_future() ] content_type context_object_name [ get_context_object_name() ] d ...
https://man.mtool.work/django/6.1/ref/class-based-views/flattened-index.html
日付ベースのミックスイン (mixin) 10637
日付ベースのミックスイン (mixin) 注釈 これらのミックスインに含まれるすべての日付フォーマット属性は strftime() フォーマット文字列を使用します。 now テンプレートタグのフォーマット文字列は互換性がないので使用しないでください。 YearMixin class ... を返します。 get_next_year ( date ) [ソース] 指定した日付の翌年の最初の日を含む日付オブジェクトを返します。この関数は allow_empty と allow_future の値によって None を返したり、 Http404 例外を発生させたりします。 get_previous_year ( date ) [ソース] 指定 ... した日付の前の年の最初の日を含む日付オブジェクトを返します。この関数は allow_empty と allow_future の値によって None を返したり、 Http404 例外を発生させたりします。 MonthMixin class MonthMixin [ソース] 日付 ... 404 を返します。 get_next_month ( date ) [ソース] 指定した日付の翌月初日を含む日付オブジェクトを返します。この関数は allow_empty と allow_future の値によって None を返したり、 Http404 例外が発生したりします。 get_previous_month ( date ) [ソース] 指定し ...
https://man.mtool.work/django/6.1/ref/class-based-views/mixins-date-based.html
Django 1.8.2 リリースノート 9810
Django 1.8.2 リリースノート May 20, 2015 Django 1.8.2 fixes a security issue and several bugs in 1.8.1. Fixed session flushing in the cached_db backend A change to session.flush() in the cached_db session backend in Django 1.8 mistakenly se ... ts the session key to an empty string rather than None . An empty string is treated as a valid session key and the session cookie is set accordingly. Any ... users with an empty string in their session cookie will use the same session store. session.flush() is called by django.contrib.auth.logout() ... d (and its session key becomes '' ) the account details are set on the session and the session is saved. Any users with an empty string in their session cookie will now be logged into that account. バグ修正 Fixed check for template engine alias unique ...
https://man.mtool.work/django/6.1/releases/1.8.2.html
ジェネリック日付ビュー 9337
ジェネリック日付ビュー 日付ベースのジェネリックビュー ( django.views.generic.dates 内で提供されています) は、日付ベースのデータのために、ドリルダウンページを描画するためのビューです。 注釈 このページの例のいくつかは、 myapp/models.py 内で下 ... t に従って利用可能なオブジェクトを持つ全ての月を含みます。 year : 与えられた年を表す date オブジェクト。 next_year : allow_empty と allow_future に従って、次の年の最初の日を表す date オブジェクト。 previous_year : date オブジェクト。 allow_empty と al ... を、 datetime.datetime オブジェクトとして昇順で表します。 month : 与えられた月を表す date オブジェクト。 next_month : allow_empty と allow_future に従って、次の月の最初の日を表す date オブジェクト。 previous_month : allow_empty と allow_future に従って ... に加えて、テンプレートのコンテキストも提供されます: week : 指定した週の最初の日を表す date オブジェクト。 next_week : allow_empty と allow_future に従って、次の週の最初の日を表す date オブジェクト。 previous_week : allow_empty と allow_future に従って、 ...
https://man.mtool.work/django/6.1/ref/class-based-views/generic-date-based.html
ウィジェット 8273
ウィジェット ウィジェットは、Django が HTML の input 要素の表現方法です。ウィジェットは、HTML のレンダリングをコントロールして、ウィジェットに合致する GET/POST ディクショナリからデータを取り出します。 Built-in widgets によって作られる HTML ... は、フィールドから単一の "圧縮された" 値を取り、"解凍された" 値のリストを返します。入力された値は検証済みと見なせますが、空 (empty)でないとは限りません。 このメソッドは、サブクラスによって 実行される必要があり 、値が空 (empty) かもしれないので、処理は防 ... " ) HTML5 date inputs expect values in the ISO format YYYY-MM-DD . If a different format is provided, the field may appear empty even when a value exists. Setting the format attribute controls how Django provides the value, but the browser controls ho ... : _ ( "jun" ), 7 : _ ( "jul" ), 8 : _ ( "aug" ), 9 : _ ( "sep" ), 10 : _ ( "oct" ), 11 : _ ( "nov" ), 12 : _ ( "dec" ), } empty_label DateField が必須でない場合、 SelectDateWidget はリストのトップに空の選択肢(デフォルトでは --- )を持ちます。このラベル ...
https://man.mtool.work/django/6.1/ref/forms/widgets.html
Django 1.7.10 リリースノート 8273
Django 1.7.10 リリースノート August 18, 2015 Django 1.7.10 fixes a security issue in 1.7.9. Denial-of-service possibility in logout() view by filling session store Previously, a session could be created when anonymously accessing the django ... n store or causing other users' session records to be evicted. The SessionMiddleware has been modified to no longer create empty session records, including when SESSION_SAVE_EVERY_REQUEST is active. Additionally, the contrib.sessions.backends.base.Ses ... sionBase.flush() and cache_db.SessionStore.flush() methods have been modified to avoid creating a new empty session. Maintainers of third-party session backends should check if the same vulnerability is present in their backend an ...
https://man.mtool.work/django/6.1/releases/1.7.10.html
ページ分割 (Paginator) 8155
ページ分割 (Paginator) Django はページ分割されたデータを管理するのに役立ついくつかのクラスを提供しています。これらのクラスは django/core/paginator.py にあります。 例については ページ分割 (Pagination) のトピックガイド を参照してください。 Pa ... ginator class class Paginator ( object_list , per_page , orphans = 0 , allow_empty_first_page = True , error_messages = None ) [ソース] Paginator(ページネーター)は len() の使用時、または直接イテレートした ... 非推奨: Support for the orphans argument being larger than or equal to the per_page argument is deprecated. Paginator. allow_empty_first_page Optional. Whether or not the first page is allowed to be empty. If False and object_list is empty, then an Empt ... Paginator >>> paginator = Paginator ([ 1 , 2 , 3 ], 2 ) >>> paginator . page ( 5 ) Traceback (most recent call last): ... EmptyPage : That page contains no results そしてこれがカスタムエラーメッセージです: >>> paginator = Paginator ( ... [ 1 , 2 , 3 ...
https://man.mtool.work/django/6.1/ref/paginator.html
Django 1.4.22 リリースノート 8155
Django 1.4.22 リリースノート August 18, 2015 Django 1.4.22 fixes a security issue in 1.4.21. It also fixes support with pip 7+ by disabling wheel support. Older versions of 1.4 would silently build a broken wheel when installed with those v ... n store or causing other users' session records to be evicted. The SessionMiddleware has been modified to no longer create empty session records, including when SESSION_SAVE_EVERY_REQUEST is active. Additionally, the contrib.sessions.backends.base.Ses ... sionBase.flush() and cache_db.SessionStore.flush() methods have been modified to avoid creating a new empty session. Maintainers of third-party session backends should check if the same vulnerability is present in their backend an ...
https://man.mtool.work/django/6.1/releases/1.4.22.html
Django 5.2.19 release notes 8037
Django 5.2.19 release notes November 3, 2026 Django 5.2.19 fixes four security issues with severity "low" and one security issue with severity "moderate" in 5.2.18. CVE-2026-108147: Potential memory exhaustion in MultiPartParser via base64- ... has severity "moderate" according to the Django security policy . CVE-2026-113593: Potential exposure of private data via empty and missing Vary headers UpdateCacheMiddleware and cache_page() generated the same cache key for a request that omitted a ... header listed in the response's Vary header and a request that sent that header with an empty value. As a result, a response cached for one of these requests could be served to the other, which could lead to the expo ... sure of private data. Cache keys now distinguish between absent and empty header values, as required by RFC 9111 Section 4.1 . Responses previously cached for requests that omitted a header listed ...
https://man.mtool.work/django/6.1/releases/5.2.19.html
PREV 1 2 3 4 5 6 7 8 9 10 NEXT