検索

phrase: max: clip:
target: order:
Results of 41 - 50 of about 53 for obj (0.073 sec.)
Single object mixins — Django 4.0.6 ドキュメント 6504
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... | Index | Modules « previous | up | next » Single object mixins ¶ SingleObjectMixin ¶ class django.views ... .generic.detail. SingleObjectMixin ¶ 現在の HTTP レスポンスに紐付いたオブジェ ... です。 model = Foo と指定することは、 queryset = Foo.objects.all() の効率的な書き方で、 objects は Foo の デ ... デフォルトでは、 pk_url_kwarg は 'pk' です。 context_object_name ¶ Designates the name of the variable to u ...
https://man.plustar.jp/django/ref/class-based-views/mixins-single-object.html - [similar]
モデルフィールドリファレンス — Django 4.0.6 ドキュメント 6504
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... unique constraint violations when saving multiple objects with blank values. 文字列ベースと非文字列ベース ... してください。 Note that choices can be any sequence object -- not necessarily a list or tuple. This lets y ... 度に呼び出されます。 The default can't be a mutable object (model instance, list , set , etc.), as a refer ... ence to the same instance of that object would be used as the default value in all new m ...
https://man.plustar.jp/django/ref/models/fields.html - [similar]
Django 2.0 リリースノート — Django 4.0.6 ドキュメント 6504
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ing driver-specific creation options to GDALRaster objects using papsz_options . Allowed creating GDALRas ... ter objects in GDAL's internal virtual filesystem. Rasters ... め、今後、次のような操作は禁止されます。 >>> Model . objects . all ()[: 2 ] . reverse () Traceback (most re ... t transaction with transaction . atomic (): Book . objects . create ( author_id = 1 ) Author . objects . ...
https://man.plustar.jp/django/releases/2.0.html - [similar]
How to create custom template tags and filters — Django 4.0.6 ドキュメント 6459
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... normal string operations that will turn a SafeData object back into a normal str object and, rather than ... ou write a custom filter that operates on datetime objects, you'll usually register it with the expects_l ... same, but the link targets change depending on the object being edited -- so they're a perfect case for u ... plate that is filled with details from the current object. (In the admin's case, this is the submit_row t ...
https://man.plustar.jp/django/howto/custom-template-tags.html - [similar]
Form fields — Django 4.0.6 ドキュメント 6459
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... t to convert a string to a valid datetime.datetime object, in addition to ISO 8601 formats. The field alw ... d has been cleaned and validated, the UploadedFile object will have an additional image attribute contain ... e . getdata () # Raises AttributeError: 'NoneType' object has no attribute 'seek'. >>> image = Image . op ... image_field ) >>> image . getdata () <ImagingCore object at 0x7f5984f874b0> Additionally, UploadedFile.c ...
https://man.plustar.jp/django/ref/forms/fields.html - [similar]
Django 1.9 リリースノート — Django 4.0.6 ドキュメント 6459
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ibrary upon Django translations. It returns a JSON object containing a translations catalog, formatting s ... ort for serialization of functools.partial and LazyObject instances. When supplying None as a value in MI ... ow executing one query regardless of the number of objects being added rather than one query per object. ... elete() and QuerySet.delete() return the number of objects deleted. Added a system check to prevent defin ...
https://man.plustar.jp/django/releases/1.9.html - [similar]
フォームセット (Formset) — Django 4.0.6 ドキュメント 6459
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... .save() . If you call formset.save(commit=False) , objects will not be deleted automatically. You'll need ... to call delete() on each of the formset.deleted_objects to actually delete them: >>> instances = forms ... et . save ( commit = False ) >>> for obj in formset . deleted_objects : ... obj . delete () ...
https://man.plustar.jp/django/topics/forms/formsets.html - [similar]
組み込みタグとフィルタ — Django 4.0.6 ドキュメント 6415
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ilent を加えてください。以下に例を示します: {% for obj in some_list %} {% cycle 'row1' 'row2' as rowcolor ... thlete.name }} </ li > {% endfor %} </ ul > {% for obj in list reversed %} で、リストに対して逆順のループ ... ていない場合。これは in 演算子の逆です。 is 演算子 ¶ Object identity. Tests if two values are the same obje ... the context. {% endif %} is not operator ¶ Negated object identity. Tests if two values are not the same ...
https://man.plustar.jp/django/ref/templates/builtins.html - [similar]
翻訳 — Django 4.0.6 ドキュメント 6415
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... g, the plural translation string and the number of objects. この関数は、Django アプリケーションを数と 複数 ... が英語で 2 より大きい (その値にかかわらず、単数には 'object'、そして count が 1 ではない全ての場合に 'objec ... t , count ): page = ngettext ( 'there is %(count)d object' , 'there are %(count)d objects' , count , ) % ... t from myapp.models import Report count = Report . objects . count () if count == 1 : name = Report . _me ...
https://man.plustar.jp/django/topics/i18n/translation.html - [similar]
Django Utils — Django 4.0.6 ドキュメント 6370
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... includes functions to patch the header of response objects directly and decorators that change functions ... Adds some useful headers to the given HttpResponse object: Expires Cache-Control Each header is only adde ... updates) the Vary header in the given HttpResponse object. newheaders is a list of header names that shou ... to account for some request path from the response object. It stores those headers in a global path regis ...
https://man.plustar.jp/django/ref/utils.html - [similar]
PREV 1 2 3 4 5 6 NEXT