per page, with , order by , clip by
Results of 1 - 10 of about 25 for factory (0.004 sec.)
フォームセット (Formset) 14097
フォームセット (Formset) class BaseFormSet [ソース] フォームセットは、同じページで複数のフォームを扱うための抽象レイヤーです。データグリッドに例えるとわかりやすいでしょう。次のようなフォームがあるとしましょう: >>> from django import forms > ... たいと思うかもしれません。 ArticleForm からフォームセットを作るには、次のようにします: >>> from django.forms import formset_factory >>> ArticleFormSet = formset_factory ( ArticleForm ) これで ArticleFormSet という名前のフォームセットクラスが作成されました ... のフォームがひとつだけ表示されました。表示される空のフォームの数は extra パラメータで制御できます。デフォルトでは、 formset_factory() は空のフォームを1つ定義します。次の例では、フォームセットクラスを作成して空のフォームを2つ表示します: >>> ArticleFormSet ... = formset_factory ( ArticleForm , extra = 2 ) Formsets can be iterated and indexed, accessing forms in the order they were created. You can ...
https://man.mtool.work/django/6.1/topics/forms/formsets.html
モデルからフォームを作成する 12802
モデルからフォームを作成する ModelForm class ModelForm [ソース] データベース中心のアプリケーションを作成している場合、Django モデルに密接にマップするフォームを使うことになるでしょう。例えば、 BlogComment モデルを持っていて、閲覧者がコメント ... { "headline" : "Initial headline" }, instance = article ) >>> form [ "headline" ] . value () 'Initial headline' ModelForm factory 関数 クラス定義ではなく、スタンドアロン関数 modelform_factory() を使って、与えられたモデルからフォームを作成することもでき ... ます。あまりカスタマイズをしないなら、こちらの方が便利でしょう: >>> from django.forms import modelform_factory >>> from myapp.models import Book >>> BookForm = modelform_factory ( Book , fields = [ "author" , "title" ]) これは既存のフ ... とえば、指定されたフィールドに使用するウィジェットを指定できます: >>> from django.forms import Textarea >>> Form = modelform_factory ( Book , form = BookForm , widgets = { "title" : Textarea ()}) 含むフィールドは fields や exclude のキーワード引数、もしく ...
https://man.mtool.work/django/6.1/topics/forms/modelforms.html
モデルフォーム 10212
モデルフォーム ModelForm API リファレンス。 ModelForm の使用に関する入門的な資料は、トピックガイドの モデルからフォームを作成する を参照してください。 モデルフォームの Meta API class ModelFormOptions [ソース] The _meta API is used to build ... フィールドの django.db.models.Field 型に対応するデフォルトウィジェットを適用します。 モデルフォームファクトリ関数 modelform_factory modelform_factory ( model , form = ModelForm , fields = None , exclude = None , formfield_callback = None , widgets = None ... す。 field_classes は、フォームフィールドクラスにマッピングされたモデルフィールド名のディクショナリです。 使用例は ModelForm factory 関数 を参照してください。 フィールドのリストは、キーワード引数 fields や exclude 、もしくはフォームの内部の Meta クラスで対 ... ドを選択する を参照してください。使うフィールドの定義を省略すると、 ImproperlyConfigured 例外を引き起こします。 modelformset_factory modelformset_factory ( model , form = ModelForm , formfield_callback = None , formset = BaseModelFormSet , extra = 1 , can ...
https://man.mtool.work/django/6.1/ref/forms/models.html
フォームセット (Formset) の関数 9049
フォームセット (Formset) の関数 フォームセット (Formset) の API リファレンスです。Formset についての導入的な情報は、 フォームセット (Formset) トピックガイドを参照してください。 formset_factory formset_factory ( form , formset = BaseFormSet ...
https://man.mtool.work/django/6.1/ref/forms/formsets.html
Django 3.2 リリースノート 8983
Django 3.2 リリースノート April 6, 2021 Django 3.2 へようこそ! このリリースノートでは、 バージョン 3.2 の新機能 と、Django 3.1 以前からアップグレードする際に注意すべき、 後方互換性のない変更 について説明します。また、 一部の機能を非推奨 とし ... hers is increased from 71 to 128 bits. django.contrib.contenttypes The new absolute_max argument for generic_inlineformset_factory() allows customizing the maximum number of forms that can be instantiated when supplying POST data. See インスタンス化でき ... るフォームの数を制限する for more details. The new can_delete_extra argument for generic_inlineformset_factory() allows removal of the option to delete extra forms. See can_delete_extra for more information. django.contrib.gis The GD ... dler.upload_interrupted() callback allows handling interrupted uploads. フォーム The new absolute_max argument for formset_factory() , inlineformset_factory() , and modelformset_factory() allows customizing the maximum number of forms that can be instan ...
https://man.mtool.work/django/6.1/releases/3.2.html
contenttypes フレームワーク 8202
contenttypes フレームワーク Django には contenttypes アプリケーションが含まれており、 Django を使ったプロジェクトにインストールされているすべてのモデルを追跡し、モデルを扱うための高レベルで汎用的なインターフェースを提供します。 概要 content ... 記を提供します: BaseGenericInlineFormSet GenericForeignKey を使用するためのフォームセットファクトリ、 generic_inlineformset_factory() 。 class BaseGenericInlineFormSet [ソース] generic_inlineformset_factory ( model , form = ModelForm , formset = BaseGene ... del = True , min_num = None , validate_min = False , absolute_max = None , can_delete_extra = True ) [ソース] modelformset_factory() を使用して GenericInlineFormSet を返します。 デフォルトの content_type と object_id と異なる場合は、それぞれ ct_field と ... fk_field を指定する必要があります。その他のパラメータは modelformset_factory() と inlineformset_factory() で説明されているものと同様です。 for_concrete_model 引数は GenericForeignKey の for_concrete_ ...
https://man.mtool.work/django/6.1/ref/contrib/contenttypes.html
Django 1.3.6 リリースノート 7821
Django 1.3.6 リリースノート February 19, 2013 Django 1.3.6 fixes four security issues present in previous Django releases in the 1.3 series. This is the sixth bugfix/security release in the Django 1.3 series. Host header poisoning Some part ... ets have a strictly-enforced maximum number of forms (1000 by default, though it can be set higher via the max_num formset factory argument). Admin history view information leakage In previous versions of Django, an admin user without change permission ...
https://man.mtool.work/django/6.1/releases/1.3.6.html
Django 1.4.4 リリースノート 7821
Django 1.4.4 リリースノート February 19, 2013 Django 1.4.4 fixes four security issues present in previous Django releases in the 1.4 series, as well as several other bugs and numerous documentation improvements. This is the fourth bugfix/se ... ets have a strictly-enforced maximum number of forms (1000 by default, though it can be set higher via the max_num formset factory argument). Admin history view information leakage In previous versions of Django, an admin user without change permission ...
https://man.mtool.work/django/6.1/releases/1.4.4.html
フォーム 7754
フォーム 詳細なフォーム API リファレンスです。入門的な内容については フォームを使う トピックガイドを参照してください。 フォーム API バインドされた (bound) フォームとバインドされていない (unbound) フォーム フォームをデータの検証に使用する フ ... ィールドの作成 モデルフォーム モデルフォームの Meta API モデルフォームファクトリ関数 フォームセット (Formset) の関数 formset_factory フォームレンダリング API 低レベルのレンダリングAPI 組み込みのテンプレートフォームレンダラー フォームセットテンプレートで利 ...
https://man.mtool.work/django/6.1/ref/forms/
Django 1.4 リリースノート 7688
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 ... to pass initial values to the model forms that are part of both model formsets and inline model formsets as returned from factory functions modelformset_factory and inlineformset_factory respectively just like with regular formsets. However, initial va ...
https://man.mtool.work/django/6.1/releases/1.4.html
PREV 1 2 3 NEXT