検索

phrase: max: clip:
target: order:
Results of 1 - 10 of about 56 for COUNT (0.016 sec.)
アグリゲーション — Django 4.0.6 ドキュメント 15132
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ます: # Total number of books. >>> Book . objects . count () 2452 # Total number of books with publisher=Bal ... ts . filter ( publisher__name = 'BaloneyPress' ) . count () 73 # Average price across all books. >>> from d ... ationship backwards. # Each publisher, each with a count of books as a "num_books" attribute. >>> from djan ... go.db.models import Count >>> pubs = Publisher . objects . annotate ( num_bo ...
https://man.plustar.jp/django/topics/db/aggregation.html - [similar]
QuerySet API リファレンス — Django 4.0.6 ドキュメント 10593
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... 際のオブジェクトが必要ないのであれば)、SQLの SELECT COUNT(*) を使ってデータベースレベルでハンドルする方がより ... 効率的です。Djangoはまさにこの理由から count() メソッドを提供しています。 list()。 list() を呼び ... 決定したいとします: >>> from django.db.models import Count >>> q = Blog . objects . annotate ( Count ( 'entry ... of entries on the first blog >>> q [ 0 ] . entry__count 42 Blog モデル自体は entry__count 属性を定義しませ ...
https://man.plustar.jp/django/ref/models/querysets.html - [similar]
翻訳 — Django 4.0.6 ドキュメント 10593
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... きい (その値にかかわらず、単数には 'object'、そして count が 1 ではない全ての場合に 'objects' となります。) ... lation import ngettext def hello_world ( request , count ): page = ngettext ( 'there is %(count)d object' , ... 'there are %(count)d objects' , count , ) % { 'count' : count , } ret ... Response ( page ) この例では、オブジェクトの数値は count 変数として翻訳言語に渡されます。 複数形は、複雑で言 ...
https://man.plustar.jp/django/topics/i18n/translation.html - [similar]
Conditional Expressions — Django 4.0.6 ドキュメント 9857
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... Model ): REGULAR = 'R' GOLD = 'G' PLATINUM = 'P' ACCOUNT_TYPE_CHOICES = [ ( REGULAR , 'Regular' ), ( GOLD , ... gth = 50 ) registered_on = models . DateField () account_type = models . CharField ( max_length = 1 , choic ... es = ACCOUNT_TYPE_CHOICES , default = REGULAR , ) When ¶ class ... ollowing two examples are equivalent: >>> When ( account_type = Client . GOLD , then = 'name' ) >>> When ( ...
https://man.plustar.jp/django/ref/models/conditional-expressions.html - [similar]
django.core.paginator — Django 4.0.6 ドキュメント 9238
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... self . per_page if top + self . orphans >= self . count : top = self . count return self . _get_page ( sel ... n Page ( * args , ** kwargs ) @cached_property def count ( self ): """Return the total number of objects, a ... all pages.""" c = getattr ( self . object_list , "count" , None ) if callable ( c ) and not inspect . isbu ... """Return the total number of pages.""" if self . count == 0 and not self . allow_empty_first_page : retur ...
https://man.plustar.jp/django/_modules/django/core/paginator.html - [similar]
ページネーション — Django 4.0.6 ドキュメント 8914
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... ringo' ] >>> p = Paginator ( objects , 2 ) >>> p . count 4 >>> p . num_pages 2 >>> type ( p . page_range ) ... nator には、リストやタプル、 Django の QuerySet 、 count() または __len__() メソッドを持つどんなオブジェクト ... るオブジェクト数を特定するとき、 Paginator は最初に count() メソッドの実行を試み、その後、渡されたオブジェク ... トが count() メソッドを実装していなかった場合のフォールバック ...
https://man.plustar.jp/django/topics/pagination.html - [similar]
django.core.management.base — Django 4.0.6 ドキュメント 8840
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... eader , body , footer = "" , "" , "" visible_issue_count = 0 # excludes silenced warnings if all_issues : d ... _name in sorted_issues : if issues : visible_issue_count += len ( issues ) formatted = ( self . style . ERR ... \n " % ( group_name , formatted ) if visible_issue_count : header = "System check identified some issues: \ ... n " if display_num_errors : if visible_issue_count : footer += " \n " footer += "System check identif ...
https://man.plustar.jp/django/_modules/django/core/management/base.html - [similar]
Django 1.8.5 リリースノート — Django 4.0.6 ドキュメント 8707
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... eld with an unhashable default ( #25393 ). Changed Count queries to execute COUNT(*) instead of COUNT('*') ... s , migrations , when , some , crash , up , next , COUNT , translation クイック検索 Last update: 2022年6月0 ...
https://man.plustar.jp/django/releases/1.8.5.html - [similar]
django.utils.html — Django 4.0.6 ドキュメント 8295
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... lue : new_value = _strip_once ( value ) if value . count ( "<" ) == new_value . count ( "<" ): # _strip_onc ... d. if ( middle . endswith ( closing ) and middle . count ( closing ) == middle . count ( opening ) + 1 ): m ... RS ) if middle_unescaped != stripped : punctuation_count = len ( middle_unescaped ) - len ( stripped ) trai ... l = middle [ - punctuation_count :] + trail middle = middle [: - punctuation_count ...
https://man.plustar.jp/django/_modules/django/utils/html.html - [similar]
Paginator — Django 4.0.6 ドキュメント 7956
" + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va ... tuple, QuerySet , or other sliceable object with a count() or __len__() method. For consistent pagination, ... _elided_page_range() . Default is '…' . Paginator. count ¶ すべてのページに渡るオブジェクト全体の数です。 注 ... ist , Paginator will first try calling object_list.count() . If object_list has no count() method, then Pag ... bjects, such as QuerySet , to use a more efficient count() method when available. Paginator. num_pages ¶ ト ...
https://man.plustar.jp/django/ref/paginator.html - [similar]
PREV 1 2 3 4 5 6 NEXT