per page, with , order by , clip by
Results of 1 - 10 of about 50 for widget (0.006 sec.)
ウィジェット 14152
ウィジェット ウィジェットは、Django が HTML の input 要素の表現方法です。ウィジェットは、HTML のレンダリングをコントロールして、ウィジェットに合致する GET/POST ディクショナリからデータを取り出します。 Built-in widgets によって作られる HTML ... は、 ビルトインの Field クラス を参照してください。 しかし、フィールドに別のウィジェットを使用したい場合は、フィールド定義で widget 引数を使用できます。例えば: from django import forms class CommentForm ( forms . Form ): name = forms . CharField () url = ... forms . URLField () comment = forms . CharField ( widget = forms . Textarea ) これは、comment のフォームに対して、デフォルトの TextInput ウィジェットではなく、より大きなサイズの T ... 略可能な追加の引数を持っています; これらは、フィールド上でウィジェットを定義する際にセットできます。以下の例では、 SelectDateWidget に対して years 属性がセットされます: from django import forms BIRTH_YEAR_CHOICES = [ "1980" , "1981" , "1982" ] FAVORITE_C ...
https://man.mtool.work/django/6.1/ref/forms/widgets.html
GeoDjango の admin サイト 11535
GeoDjango の admin サイト GISModelAdmin class GISModelAdmin [ソース] gis_widget GeometryField で使用するウィジェットクラス。デフォルトは OSMWidget です。 gis_widget_kwargs gis_widget に渡されるキーワード引数。デフォルトは空の辞書です。 ...
https://man.mtool.work/django/6.1/ref/contrib/gis/admin.html
フォームセット (Formset) 10708
フォームセット (Formset) class BaseFormSet [ソース] フォームセットは、同じページで複数のフォームを扱うための抽象レイヤーです。データグリッドに例えるとわかりやすいでしょう。次のようなフォームがあるとしましょう: >>> from django import forms > ... 5, 11), 'ORDER': 1} {'title': 'Article #1', 'pub_date': datetime.date(2008, 5, 10), 'ORDER': 2} BaseFormSet には ordering_widget 属性と get_ordering_widget() メソッドがあり、 can_order で使用するウィジェットを制御します。 ordering_widget BaseFormSet. ... ordering_widget デフォルト値: NumberInput ordering_widget をセットすると、 can_order で使用するウィジェットクラスを指定できます: >>> from ... rmSet , formset_factory >>> from myapp.forms import ArticleForm >>> class BaseArticleFormSet ( BaseFormSet ): ... ordering_widget = HiddenInput ... >>> ArticleFormSet = formset_factory ( ... ArticleForm , formset = BaseArticleFormSet , can_order = True ...
https://man.mtool.work/django/6.1/topics/forms/formsets.html
Django 2.0.4 リリースノート 10181
Django 2.0.4 リリースノート 2018年4月2日 Django 2.0.4 では、2.0.3 にあったいくつかのバグを修正しました。 バグ修正 Fixed a crash when filtering with an Exists() annotation of a queryset containing a single field ( #29195 ). Fixed admin autoc ... omplete widget's translations for zh-hans and zh-hant languages ( #29213 ). Corrected admin's autocomplete widget to add a space after cu ... ression in Django 1.11 where an empty choice could be initially selected for the SelectMultiple and CheckboxSelectMultiple widgets ( #29273 ). Fixed a regression in Django 2.0 where OpenLayersWidget deserialization ignored the widget map's SRID and ass ...
https://man.mtool.work/django/6.1/releases/2.0.4.html
Django 1.11.4 リリースノート 9971
Django 1.11.4 リリースノート August 1, 2017 Django 1.11.4 fixes several bugs in 1.11.3. バグ修正 Fixed a regression in 1.11.3 on Python 2 where non-ASCII format values for date/time widgets results in an empty value in the widget's HTML ( # ... et.count() for union() , difference() , and intersection() queries. ( #28399 ). Fixed ClearableFileInput rendering as a subwidget of MultiWidget ( #28414 ). Custom clearable_file_input.html widget templates will need to adapt for the fact that context ... lues checkbox_name , checkbox_id , is_initial , input_text , initial_text , and clear_checkbox_label are now attributes of widget rather than appearing in the top-level context. Fixed queryset crash when using a GenericRelation to a proxy model ( #2841 ...
https://man.mtool.work/django/6.1/releases/1.11.4.html
GeoDjango フォーム API 8723
GeoDjango フォーム API GeoDjango はジオローカライズされたデータを地図上に視覚的に表示・編集するために、いくつかの特殊なフォームフィールドとウィジェットを提供します。デフォルトでは、 NASA が提供する WMS レイヤーをベースとした OpenLayers を利 ... jango ウィジェットはテンプレートベースなので、その属性のほとんどは他の Django ウィジェットの属性と異なります。 BaseGeometryWidget. base_layer New in Django 6.0. 対応する JavaScript のマップウィジェットで使用されるデフォルトのベースマップレイヤーの識別子 ... を指定する文字列です。これはレンダリング時にウィジェットのオプションの一部として渡され、 MapWidget が初期化するマップタイルプロバイダーまたはベースレイヤーを判断できるようにします(デフォルトは None です)。 BaseGeometryW ... idget. geom_type OpenGIS ジオメトリタイプ。通常、フォームフィールドによって設定されます。 BaseGeometryWidget. map_srid 地図で使用されるSRIDコード (デフォルトは4326)。 BaseGeometryWidget. display_raw 主にデバッグのために、現在のジオ ...
https://man.mtool.work/django/6.1/ref/contrib/gis/forms-api.html
フォームレンダリング API 8723
フォームレンダリング API Djangoのフォームウィジェットは、Djangoの テンプレートエンジンシステム を使用してレンダリングされます。 フォームのレンダリングプロセスは、いくつかのレベルでカスタマイズできます: ウィジェットはカスタムテンプレート名を ... te and third-party packages that use the default renderer. Form.default_renderer 属性を設定するか、または Form.render() や Widget.render() のメソッドの renderer 引数を使用することで、フォームごとやウィジェットごとにカスタムレンダラーを提供することもでき ... トでは、フィールドは以下の値を含む辞書を受け取ります: field : BoundField 。 ウィジェットテンプレートで利用可能なコンテキスト Widgetテンプレートは Widget.get_context() からコンテキストを受け取ります。デフォルトでは、ウィジェットはコンテキスト内で単一の値、 ... widget を受け取ります。これは次のような値を含む辞書です: name value attrs is_hidden template_name 一部のウィジェットは、コンテキス ...
https://man.mtool.work/django/6.1/ref/forms/renderers.html
フォームアセット (Media クラス) 8512
フォームアセット ( Media クラス) 魅力的で使いやすいウェブのフォームを作るには、HTML だけでは不十分です。CSS スタイルシートも必要です。さらに豪華なウィジェットを使いたければ、JavaScript を各ページに配置する必要もあるでしょう。あるページに必要 ... ンが使っているウィジェットが気に入ったら、ご自分の アプリケーションで自由に使ってください!これらは全て django.contrib.admin.widgets に格納されています。 どの JavaScript ツールキットを使えばいいの? 多くの JavaScript ツールキットが存在し、その多くにはウィ ... スに宣言します。内部クラスのプロパティで必要なものを定義します。 以下に例を示します。 from django import forms class CalendarWidget ( forms . TextInput ): class Media : css = { "all" : [ "pretty.css" ], } js = [ "animations.js" , "actions.js" ] このコード ... では、 CalendarWidget を定義しており、これは TextInput に基づいています。CalendarWidget をフォーム上で使用すると、CSS ファイル pretty.css と Jav ...
https://man.mtool.work/django/6.1/topics/forms/media.html
Django 1.3 リリースノート 8301
Django 1.3 リリースノート March 23, 2011 Django 1.3 へようこそ! Nearly a year in the making, Django 1.3 includes quite a few new features and plenty of bug fixes and improvements to existing features. These release notes cover the new featu ... manually or scheduled to run periodically via e.g. cron). PasswordInput default rendering behavior The PasswordInput form widget, intended for use with form fields which represent passwords, accepts a boolean keyword argument render_value indicating w ... xample: class LoginForm ( forms . Form ): username = forms . CharField ( max_length = 100 ) password = forms . CharField ( widget = forms . PasswordInput ( render_value = True )) Clearable default widget for FileField Django 1.3 now includes a Clearabl ... eFileInput form widget in addition to FileInput . ClearableFileInput renders with a checkbox to clear the field's value (if the field has a value ...
https://man.mtool.work/django/6.1/releases/1.3.html
フォーム API 8211
フォーム API このドキュメントについて このドキュメントでは、Django のフォーム API の詳細について説明します。このドキュメントを読む前に フォームについての概要 を読むことをおすすめします。 バインドされた (bound) フォームとバインドされていない ... edby [ソース] フィールドをそのヘルプテキストやエラーメッセージと関連付けるための aria-describedby 参照を返します。ただし、 Widget.attrs に aria-describedby がすでに設定されている場合は、ユーザー定義の属性を保持するために None を返します。 BoundField. a ... ットの attrs を設定することで、IDを変更できます。例えば、以下のようにフィールドを宣言します: my_field = forms . CharField ( widget = forms . TextInput ( attrs = { "id" : "myFIELD" })) そして、上記のテンプレートを使用すると、以下のように表示されます: < l ... プロパティ。 BoundField. use_fieldset [ソース] この BoundField ウィジェットの use_fieldset 属性の値を返します。 BoundField. widget_type [ソース] ラップされたフィールドのウィジェットのクラス名を小文字にして、末尾の input や widget を削除したものを返します ...
https://man.mtool.work/django/6.1/ref/forms/api.html
PREV 1 2 3 4 5 NEXT