検索

phrase: max: clip:
target: order:
Results of 11 - 20 of about 56 for count (0.043 sec.)
フォームセット (Formset) — Django 4.0.6 ドキュメント 7956
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ない可能性があるためです。 BaseFormSet. total_error_count () ¶ フォームセット内にいくつのエラーがあるかを確か ... めるためには、 total_error_count メソッドが使えます。 >>> # Using the previous exam ... n ( formset . errors ) 2 >>> formset . total_error_count () 1 また、フォームに入力されたデータと初期データが ... m is missing or has been tampered with. total_form_count と initial_form_count ¶ BaseFormSet には、 Managem ...
https://man.plustar.jp/django/topics/forms/formsets.html - [similar]
GDAL API — Django 4.0.6 ドキュメント 7897
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... layers of data it contains by accessing the layer_count property, or (equivalently) by using the len() fun ... s . name '/path/to/your/cities.shp' >>> ds . layer_count # This file only contains one layer 1 layer_count ... 'RandomWrite' , 'FastSpatialFilter' , 'FastFeatureCount' , 'FastGetExtent' , 'CreateField' , 'Transactions ... nternally to wrap an OGR DataSource driver. driver_count ¶ Returns the number of OGR vector drivers current ...
https://man.plustar.jp/django/ref/contrib/gis/gdal.html - [similar]
データベースアクセスの最適化 — Django 4.0.6 ドキュメント 7823
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... set, rather than if obj in queryset . Use QuerySet.count() ¶ ...if you only want the count, rather than doi ... than if queryset . But: Don't overuse contains() , count() , and exists() ¶ If you are going to need other ... if , QuerySet.contains() for the in , or QuerySet.count() for the count would each cause additional querie ... を使用する Use QuerySet.contains(obj) Use QuerySet.count() Use QuerySet.exists() Don't overuse contains() , ...
https://man.plustar.jp/django/topics/db/optimization.html - [similar]
多対一 (many-to-one) 関係 — Django 4.0.6 ドキュメント 7691
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... t [<Article: Paul's story>]> >>> r . article_set . count () 2 >>> r2 . article_set . count () 1 Note that i ... . distinct () <QuerySet [<Reporter: John Smith>]> Counting in the opposite direction works in conjunction ... ilter ( article__headline__startswith = 'This' ) . count () 3 >>> Reporter . objects . filter ( article__he ... adline__startswith = 'This' ) . distinct () . count () 1 Queries can go round in circles: >>> Reporter ...
https://man.plustar.jp/django/topics/db/examples/many_to_one.html - [similar]
Database Functions — Django 4.0.6 ドキュメント 7617
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ime__year = Extract ( 'end_datetime' , 'year' )) . count () 1 DateField extracts ¶ class ExtractYear ( expr ... e import datetime >>> from django.db.models import Count , DateTimeField >>> from django.db.models.function ... values ( 'start_day' ) . annotate ( experiments = Count ( 'id' )) >>> for exp in experiments_per_day : ... ... e import datetime >>> from django.db.models import Count >>> from django.db.models.functions import TruncMo ...
https://man.plustar.jp/django/ref/models/database-functions.html - [similar]
クエリー式 — Django 4.0.6 ドキュメント 7558
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... her expressions. 例 ¶ from django.db.models import Count , F , Value from django.db.models.functions import ... ent. Company . objects . annotate ( num_products = Count ( 'products' )) Company . objects . annotate ( num ... _products = Count ( F ( 'products' ))) # Aggregates can contain comp ... lso Company . objects . annotate ( num_offerings = Count ( F ( 'products' ) + F ( 'services' ))) # Expressi ...
https://man.plustar.jp/django/ref/models/expressions.html - [similar]
パフォーマンスと最適化 — Django 4.0.6 ドキュメント 7411
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... se that's what databases are good at my_bicycles . count () # counting Python objects # slower, because it ... ate filter # slower still, because it will have to count them in Python anyway, # and because of template l ... o consider what is happening before and after your count to work out what's an optimal way of doing it in t ... base optimization documents describes a case where counting in the template would be better . Secondly, the ...
https://man.plustar.jp/django/topics/performance.html - [similar]
Django 1.6.1 release notes — Django 4.0.6 ドキュメント 7352
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... password hash upgrade when changing the iteration count (#21535). Fixed a bug in the debug view when the U ... e element (#21530). Re-added missing search result count and reset link in changelist admin view (#21510). ...
https://man.plustar.jp/django/releases/1.6.1.html - [similar]
Django 1.8 リリースノート — Django 4.0.6 ドキュメント 7219
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... e. You can now specify ModelAdmin.show_full_result_count to control whether or not the full count of object ... S now supports ForeignKey s. The default iteration count for the PBKDF2 password hasher has been increased ... ent, for example City.objects.filter(point__within=Country.objects.filter(continent='Africa').values('mpoly ... ng you to create TRACE requests in your tests. The count argument was added to assertTemplateUsed() . This ...
https://man.plustar.jp/django/releases/1.8.html - [similar]
多対多 (many-to-many) 関係 — Django 4.0.6 ドキュメント 7219
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ct () <QuerySet [<Article: NASA uses Python>]> The count() function respects distinct() as well: >>> Articl ... ( publications__title__startswith = "Science" ) . count () 2 >>> Article . objects . filter ( publications ... __title__startswith = "Science" ) . distinct () . count () 1 >>> Article . objects . filter ( publications ...
https://man.plustar.jp/django/topics/db/examples/many_to_many.html - [similar]
PREV 1 2 3 4 5 6 NEXT