per page, with , order by , clip by
Results of 1 - 10 of about 42 for widgets (0.004 sec.)
ウィジェット 16412
ウィジェット ウィジェットは、Django が HTML の input 要素の表現方法です。ウィジェットは、HTML のレンダリングをコントロールして、ウィジェットに合致する GET/POST ディクショナリからデータを取り出します。 Built-in widgets によって作られる HTML ... not be rendered, but provides the basic attribute attrs . You may also implement or override the render() method on custom widgets. attrs ディクショナリは、レンダリングされたウィジェット上にセットされる HTML の属性を含んでいます。 >>> from django import ... チェックボックスをチェックするのではなく、少なくとも1つをチェックすることを要求するためです。 Override this method in custom widgets that aren't compatible with browser validation. For example, a WYSIWYG text editor widget backed by a hidden textarea elem ... ent may want to always return False to avoid browser validation on the hidden field. MultiWidget class MultiWidget ( widgets , attrs = None ) [ソース] 複数のウィジェットで構成されたウィジェットです。 MultiWidget は MultiValueField と協調して動作し ...
https://man.mtool.work/django/6.1/ref/forms/widgets.html
モデルフォーム 9785
モデルフォーム ModelForm API リファレンス。 ModelForm の使用に関する入門的な資料は、トピックガイドの モデルからフォームを作成する を参照してください。 モデルフォームの Meta API class ModelFormOptions [ソース] The _meta API is used to build ... にする を参照してください。 model ModelFormOptions. model 必須。 ModelForm に使用する django.db.models.Model を指定します。 widgets ModelFormOptions. widgets フィールド名に対して django.forms.Widget を対応づける辞書。 指定されていないフィールドについては ... elform_factory modelform_factory ( model , form = ModelForm , fields = None , exclude = None , formfield_callback = None , widgets = None , localized_fields = None , labels = None , help_texts = None , error_messages = None , field_classes = None ) [ソー ... が返されるフィールドから除かれます。 formfield_callback は、モデルフィールドを取ってフォームフィールドを返す callable です。 widgets は、ウィジェットにマッピングされたモデルフィールド名のディクショナリです。 localized_fields は、ローカライズされるべきフィ ...
https://man.mtool.work/django/6.1/ref/forms/models.html
モデルからフォームを作成する 9274
モデルからフォームを作成する ModelForm class ModelForm [ソース] データベース中心のアプリケーションを作成している場合、Django モデルに密接にマップするフォームを使うことになるでしょう。例えば、 BlogComment モデルを持っていて、閲覧者がコメント ... してフォームフィールドを変更する柔軟性があります。 フィールドに対して独自のウィジェットを指定するには、内部の Meta クラスの widgets を使用してください。これは、フィールド名としジェットのクラスやインスタンスをマッピングするディクショナリです。 例えば、 Au ... els import Author class AuthorForm ( ModelForm ): class Meta : model = Author fields = [ "name" , "title" , "birth_date" ] widgets = { "name" : Textarea ( attrs = { "cols" : 80 , "rows" : 20 }), } widgets 辞書はウィジェットのインスタンス(例: Textarea(. ... ..) )またはクラス(例: Textarea )を受け付けます。空でない choices 属性を持つモデルフィールドでは widgets 辞書は無視されることに注意してください。この場合、フォームフィールドをオーバーライドして別のウィジェットを使用する必要があ ...
https://man.mtool.work/django/6.1/topics/forms/modelforms.html
Django 1.6 リリースノート 9181
Django 1.6 リリースノート 注釈 Dedicated to Malcolm Tredinnick On March 17, 2013, the Django project and the free software community lost a very dear friend and developer. Malcolm was a long-time contributor to Django, a model community mem ... del field A new django.db.models.BinaryField model field allows storage of raw binary data in the database. GeoDjango form widgets GeoDjango now provides form fields and widgets for its geo-specialized fields. They are OpenLayers-based by default, but t ... onth and day , the ORM now supports hour , minute and second lookups. Django now wraps all PEP 249 exceptions. The default widgets for EmailField , URLField , IntegerField , FloatField and DecimalField use the new type attributes available in HTML5 ( ty ... elected subclasses. The change can affect you in a backward incompatible way if you employ custom model form fields and/or widgets for ManyToManyField model fields whose UIs do rely on the automatic provision of the mentioned hardcoded sentence. These f ...
https://man.mtool.work/django/6.1/releases/1.6.html
Pythonモジュール索引 8980
Pythonモジュール索引 a | c | d | f | h | m | s | t | u | v a django.apps c django.conf django.conf.urls django.conf.urls.i18n django.contrib django.contrib.admin Django's admin site. django.contrib.admindocs Django's admin documentation gen ... GeoDjango's framework for generating spatial feeds. django.contrib.gis.forms GeoDjango forms API. django.contrib.gis.forms.widgets GeoDjango widgets API. django.contrib.gis.gdal GeoDjango's high-level interface to the GDAL library. django.contrib.gis.ge ... API reference for inner ``Meta`` class and factory functions django.forms.renderers Built-in form renderers. django.forms.widgets Django's built-in form widgets. h django.http Classes dealing with HTTP requests and responses. m django.middleware Django ...
https://man.mtool.work/django/6.1/py-modindex.html
Django 1.11.3 リリースノート 8670
Django 1.11.3 リリースノート July 1, 2017 Django 1.11.3 fixes several bugs in 1.11.2. バグ修正 Removed an incorrect deprecation warning about a missing renderer argument if a Widget.render() method accepts **kwargs ( #28265 ). Fixed a regre ... quest (in particular, when the login page is accessed directly) ( #28229 ). Prevented attribute values in the django/forms/widgets/attrs.html template from being localized so that numeric attributes (e.g. max and min ) of NumberInput work correctly ( #2 ... ring in the template context of the CheckboxSelectMultiple , NullBooleanSelect , RadioSelect , SelectMultiple , and Select widgets ( #28176 ). In Django 1.11.1, casting was added in Python to avoid localization of numeric values in Django templates, but ...
https://man.mtool.work/django/6.1/releases/1.11.3.html
Django 1.11 リリースノート 8376
Django 1.11 リリースノート April 4, 2017 Django 1.11 へようこそ! このリリースノートでは、Django 1.10 および過去のバージョンからアップグレードする際に知っておくべきいくつかの 後方互換性のない変更 に加え、 新機能 を説明しています。 いくつかの ... ction, Distance function, and distance lookups now work with geodetic coordinates on SpatiaLite. The OpenLayers-based form widgets now use OpenLayers.js from https://cdnjs.cloudflare.com which is more suitable for production use than the old https://ope ... ed. If you're using it, let us know . The GEOSGeometry equality operator now also compares SRID. The OpenLayers-based form widgets now use OpenLayers 3, and the gis/openlayers.html and gis/openlayers-osm.html templates have been updated. Check your proj ... ect if you subclass these widgets or extend the templates. Also, the new widgets work a bit differently than the old ones. Instead of using a toolbar in the ...
https://man.mtool.work/django/6.1/releases/1.11.html
Django 1.11.12 リリースノート 8175
Django 1.11.12 リリースノート 2018年4月2日 Django 1.11.12 では、1.11.11 にあった2つのバグを修正しました。 バグ修正 Fixed a regression in Django 1.11.8 where combining two annotated values_list() querysets with union() , difference() , or in ... ression in Django 1.11 where an empty choice could be initially selected for the SelectMultiple and CheckboxSelectMultiple widgets ( #29273 ). ...
https://man.mtool.work/django/6.1/releases/1.11.12.html
GeoDjango フォーム API 8067
GeoDjango フォーム API GeoDjango はジオローカライズされたデータを地図上に視覚的に表示・編集するために、いくつかの特殊なフォームフィールドとウィジェットを提供します。デフォルトでは、 NASA が提供する WMS レイヤーをベースとした OpenLayers を利 ... ol@x.y.z/ol.css" ], "img-src" : [ CSP . SELF , "https://*.earthdata.nasa.gov" ], } OSMWidget class OSMWidget [ソース] This widget specialized OpenLayersWidget and uses an OpenStreetMap base layer to display geographic objects on. Attributes are: base_la ... plate. Consequently, the gis/openlayers-osm.html template was removed. Customizing the base layer used in OpenLayers-based widgets New in Django 6.0. To customize the base layer displayed in OpenLayers-based geometry widgets, define a new layer builder ... < ChosenSource > ()}); }; Then, subclass a standard geometry widget and set the base_layer : from django.contrib.gis.forms.widgets import OpenLayersWidget class YourCustomWidget ( OpenLayersWidget ): base_layer = "custom_layer_name" class Media : js = [ ...
https://man.mtool.work/django/6.1/ref/contrib/gis/forms-api.html
Django 1.10.2 リリースノート 7974
Django 1.10.2 リリースノート October 1, 2016 Django 1.10.2 fixes several bugs in 1.10.1. バグ修正 Fixed a crash in MySQL database validation where SELECT @@sql_mode doesn't return a result ( #27180 ). Allowed combining contrib.postgres.sear ... electMultiple , MultiWidget , FileInput , SplitDateTimeWidget , SelectDateWidget , and SplitArrayWidget ( #27186 ). Custom widgets affected by this issue should implement value_omitted_from_data() . Fixed a crash in runserver logging during a "Broken pi ...
https://man.mtool.work/django/6.1/releases/1.10.2.html
PREV 1 2 3 4 5 NEXT