検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 28 for ModelForm (0.032 sec.)
モデルからフォームを作成する — Django 4.0.6 ドキュメント 15354
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... vious | up | next » モデルからフォームを作成する ¶ ModelForm ¶ class ModelForm ¶ データベース中心のアプリケーシ ... 用意してあります。 例: >>> from django.forms import ModelForm >>> from myapp.models import Article # Create the ... form class. >>> class ArticleForm ( ModelForm ): ... class Meta : ... model = Article ... fields ... m django.db import models from django.forms import ModelForm TITLE_CHOICES = [ ( 'MR' , 'Mr.' ), ( 'MRS' , 'Mrs ...
https://man.plustar.jp/django/topics/forms/modelforms.html - [similar]
モデルフォーム関数 — Django 4.0.6 ドキュメント 11470
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ules « previous | up | next » モデルフォーム関数 ¶ Model Form の API リファレンスです。モデルフォームについての ... モデルからフォームを作成する を参照してください。 modelform_factory ¶ modelform_factory ( model , form = Model ... field_classes = None ) ¶ 与えられた model に対して ModelForm を返します。必要に応じて form 引数を渡すことで、 M ... たモデルフィールド名のディクショナリです。 使用例は ModelForm factory 関数 を参照してください。 フィールドのリス ...
https://man.plustar.jp/django/ref/forms/models.html - [similar]
Django 1.6 release notes — Django 4.0.6 ドキュメント 9241
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... s added to BaseFormSet and formset_factory() , and ModelForm and inline versions of the same. The behavior of v ... u should first uninstall PIL, then install Pillow. ModelForm accepts several new Meta options. Fields included ... s. Formsets now have a total_error_count() method. ModelForm fields can now override error messages defined in ... eed to check and update such queries. Help text of model form fields for ManyToManyField fields ¶ HTML renderin ...
https://man.plustar.jp/django/releases/1.6.html - [similar]
Django の admin サイト — Django 4.0.6 ドキュメント 9110
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... す。 ModelAdmin. form ¶ デフォルトではモデルに対して ModelForm が動的に生成されます。追加と変更の両方のページで使 ... 用されるフォームです。独自の ModelForm を定義すれば、追加と変更のページでフォームの挙動を ... ョンを admin に追加する を参照してください。 ノート ModelForm で Meta.model 属性を定義した場合、 Meta.fields 属性 ... を持っているため、 Meta.fields 属性は無視されます。 ModelForm を admin のみで使用する場合は、 ModelAdmin が使用す ...
https://man.plustar.jp/django/ref/contrib/admin/index.html - [similar]
クラスベースのビューでフォームを扱う — Django 4.0.6 ドキュメント 9110
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 、モデルとともに使用した時です。ジェネリックビューは ModelForm を自動的に生成するので、どのモデルクラスを使うのか ... には、そのクエリセットに対するモデルが使用されます。 Model form views provide a form_valid() implementation that ... l object if available. If you want to use a custom ModelForm (for instance to add extra validation), set form_c ... スタムのフォームクラスを指定した場合、 form_class が ModelForm だったとしても、モデルを指定する必要があります。 最 ...
https://man.plustar.jp/django/topics/class-based-views/generic-editing.html - [similar]
mixinを編集する — Django 4.0.6 ドキュメント 8340
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... s.generic.edit.FormMixin django.views.generic.edit.ModelFormMixin django.views.generic.edit.ProcessFormView dja ... e result to the context data with the name 'form'. ModelFormMixin ¶ class django.views.generic.edit. ModelFormM ... ixin ¶ A form mixin that works on ModelForms , rather than a standalone form. Since this is a ... attributes, describing the type of object that the ModelForm is manipulating. If you specify both the fields an ...
https://man.plustar.jp/django/ref/class-based-views/mixins-editing.html - [similar]
Django 1.2 リリースノート — Django 4.0.6 ドキュメント 8340
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... parses and manipulates cookie values client-side. ModelForm.is_valid() and ModelForm.errors ¶ Much of the vali ... dation work for ModelForms has been moved down to the model level. As a resu ... lt, the first time you call ModelForm.is_valid() , access ModelForm.errors or otherwise ... tance of your model, you should pass a copy to the ModelForm constructor. BooleanField on MySQL ¶ In previous v ...
https://man.plustar.jp/django/releases/1.2.html - [similar]
フォームを使う — Django 4.0.6 ドキュメント 8029
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ルドは HTML フォームの <input> 要素に対応します。 ( ModelForm はモデルクラスのフィールドと HTML フォームの <inpu ... ームクラスは、 django.forms.Form ないし django.forms.ModelForm のサブクラスとして作成されています。 ModelForm... Form のサブクラスとして考えられます。 Form や ModelForm は実際には (プライベートの) BaseForm クラスを継承し ... 直接追加または編集するためにフォームを使用する場合、 ModelForm は Model クラスから適切なフィールドと属性とともにフ ...
https://man.plustar.jp/django/topics/forms/index.html - [similar]
モデルインスタンスリファレンス — Django 4.0.6 ドキュメント 7898
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... メソッドを使うと、3 つ全てのステップが実行されます。 ModelForm を使っているとき、 is_valid() の呼び出しは、フォー ... に対して、これらの検証ステップを実行します。詳しくは ModelForm ドキュメント を参照してください。検証エラーを自分で ... コントロールしたい場合、もしくは ModelForm から検証を必要とするフィールドを除外した場合は、モ ... ーニングから除外するフィールド名のリストに使います。 ModelForm は、この引数をフォーム上に存在しないフィールドを検 ...
https://man.plustar.jp/django/ref/models/instances.html - [similar]
Django 1.7 release notes — Django 4.0.6 ドキュメント 7898
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... submitted forms. The metaclasses used by Form and ModelForm have been reworked to support more inheritance sce ... ation that prevented inheriting from both Form and ModelForm simultaneously have been removed as long as ModelF ... s now possible to customize the error messages for ModelForm 's unique , unique_for_date , and unique_together ... ort unique_together or any other NON_FIELD_ERROR , ModelForm now looks for the NON_FIELD_ERROR key in the error ...
https://man.plustar.jp/django/releases/1.7.html - [similar]
PREV 1 2 3 NEXT