検索

phrase: max: clip:
target: order:
Results of 21 - 30 of about 185 for objects (0.011 sec.)
contenttypes フレームワーク — Django 4.0.6 ドキュメント 7163
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... the model classes they represent and for querying objects from those models. ContentType also has a custom m ... nstance to the model it represents, or to retrieve objects from that model: ContentType. get_object_for_this_ ... s import ContentType >>> user_type = ContentType . objects . get ( app_label = 'auth' , model = 'user' ) >>> ... me, and then work with the model class or retrieve objects from it. You can relate another model to ContentTy ...
https://man.plustar.jp/django/ref/contrib/contenttypes.html - [similar]
Django 1.8 リリースノート — Django 4.0.6 ドキュメント 7075
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... lds, as well as perform arithmetic, similar to F() objects. order_by() has also gained the ability to accept ... filter to limit the list_filter choices to foreign objects which are attached to those from the ModelAdmin . ... The ModelAdmin.delete_view() displays a summary of objects to be deleted on the deletion confirmation page. T ... _count to control whether or not the full count of objects should be displayed on a filtered admin page. The ...
https://man.plustar.jp/django/releases/1.8.html - [similar]
Model クラスのリファレンス — Django 4.0.6 ドキュメント 7020
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... jango.core.exceptions.ObjectDoesNotExist . MultipleObjectsReturned ¶ exception Model. MultipleObjectsReturned ... xception is raised by QuerySet.get() when multiple objects are found for the given lookups. Django provides a ... MultipleObjectsReturned exception as an attribute of each model cl ... to identify the class of object for which multiple objects were found, allowing you to catch exceptions for a ...
https://man.plustar.jp/django/ref/models/class.html - [similar]
Measurement Objects — Django 4.0.6 ドキュメント 6965
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... dex | Modules « previous | up | next » Measurement Objects ¶ The django.contrib.gis.measure module contains o ... ts of measure. [1] Specifically, it implements two objects, Distance and Area -- both of which may be accesse ... e aliases, respectively. カスタマイズ例 ¶ Distance objects may be instantiated using a keyword argument indic ... nits. In the example below, two different distance objects are instantiated in units of kilometers ( km ) and ...
https://man.plustar.jp/django/ref/contrib/gis/measure.html - [similar]
GeoDjango — Django 4.0.6 ドキュメント 6524
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ymDifference Transform Translate Union Measurement Objects カスタマイズ例 Supported units Measurement API GEO ... S API Background Tutorial Geometry Objects Geometry Collections Prepared Geometries Geometry ... Factories I/O Objects 設定 例外 GDAL API オーバービュー Vector Data Sour ... ce Objects OGR Geometries Coordinate System Objects Raster Da ...
https://man.plustar.jp/django/ref/contrib/gis/index.html - [similar]
Admin actions — Django 4.0.6 ドキュメント 6469
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... tions" -- functions that get called with a list of objects selected on the change list page. If you look at a ... re in action; Django ships with a "delete selected objects" action available to all models. For example, here ... asks for confirmation before deleting the selected objects. To provide an intermediary page, return an HttpRe ... go's serialization functions to dump some selected objects as JSON: from django.core import serializers from ...
https://man.plustar.jp/django/ref/contrib/admin/actions.html - [similar]
Multiple object mixins — Django 4.0.6 ドキュメント 6447
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... す。例えば、URLconf は以下のようになります: path ( 'objects/page<int:page>/' , PaginatedView . as_view ()), pa ... ジ数を渡します。例えば、URL は以下のようになります: /objects/?page=3 これらの値は (0 ベースではなく) 1 ベースな ... e に対する値として last を使用することもできます: /objects/?page=last これによって、自分で何ページ存在するかを ... です。 model = Foo と指定することは、 queryset = Foo.objects.all() の効率的な書き方で、 objects は Foo の デフォ ...
https://man.plustar.jp/django/ref/class-based-views/mixins-multiple-object.html - [similar]
Django のショートカット関数 — Django 4.0.6 ドキュメント 6392
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... irect def my_view ( request ): ... obj = MyModel . objects . get ( ... ) return redirect ( obj ) By passing t ... rned: def my_view ( request ): ... obj = MyModel . objects . get ( ... ) return redirect ( obj , permanent = ... 404 def my_view ( request ): try : obj = MyModel . objects . get ( pk = 1 ) except MyModel . DoesNotExist : r ... n also pass a QuerySet instance: queryset = Book . objects . filter ( title__startswith = 'M' ) get_object_or ...
https://man.plustar.jp/django/topics/http/shortcuts.html - [similar]
Model Meta options — Django 4.0.6 ドキュメント 6194
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ¶ The attribute name of the manager, for example, 'objects' , to use for the model's _base_manager . db_table ... ly a ForeignKey . This can be used to make related objects orderable with respect to a parent object. For exa ... ed to retrieve and to set the order of the related objects: get_RELATED_order() and set_RELATED_order() , whe ... that a Question object has multiple related Answer objects, the list returned contains the primary keys of th ...
https://man.plustar.jp/django/ref/models/options.html - [similar]
Date-based mixins — Django 4.0.6 ドキュメント 6172
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... -based archive should use to determine the list of objects to display on the page. When time zone support is ... t time zone. Otherwise, the queryset could include objects from the previous or the next day in the end user' ... election, the same URL may show a different set of objects, depending on the end user's time zone. To avoid t ... ¶ A boolean specifying whether to include "future" objects on this page, where "future" means objects in whic ...
https://man.plustar.jp/django/ref/class-based-views/mixins-date-based.html - [similar]
PREV 1 2 3 4 5 6 7 8 9 10 11 12 NEXT