Results of 1 - 10 of about 40 for num (0.022 sec.)
- アグリゲーション — Django 4.0.6 ドキュメント 12949
- " + 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=BaloneyPress >>> Book . ...
# Each publisher, each with a count of books as a "num_books" attribute. >>> from django.db.models import ...
Count >>> pubs = Publisher . objects . annotate ( num_books = Count ( 'book' )) >>> pubs < QuerySet [ < ...
-
https://man.plustar.jp/django/topics/db/aggregation.html
- [similar]
- django.core.paginator — Django 4.0.6 ドキュメント 12029
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
# Translators: String used to replace omitted page numbers in elided page # range generated by paginators ...
w_empty_first_page def __iter__ ( self ): for page_number in self . page_range : yield self . page ( page ...
_number ) def validate_number ( self , number ): """Val ...
idate the given 1-based page number.""" try : if isinstance ( number , float ) and ...
-
https://man.plustar.jp/django/_modules/django/core/paginator.html
- [similar]
- クエリー式 — Django 4.0.6 ドキュメント 11514
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
e, it may be used directly in filters. There are a number of built-in expressions (documented below) that ...
mployees than chairs. Company . objects . filter ( num_employees__gt = F ( 'num_chairs' )) # Find compani ...
below are equivalent. Company . objects . filter ( num_employees__gt = F ( 'num_chairs' ) * 2 ) Company . ...
objects . filter ( num_employees__gt = F ( 'num_chairs' ) + F ( 'num_chai ...
-
https://man.plustar.jp/django/ref/models/expressions.html
- [similar]
- フォームセット (Formset) — Django 4.0.6 ドキュメント 11264
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
you can see it only displayed one empty form. The number of empty forms that is displayed is controlled ...
ムの最大表示数を制限する ¶ formset_factory() に max_num パラメータを指定すると、フォームセット中に表示され ...
= formset_factory ( ArticleForm , extra = 2 , max_num = 1 ) >>> formset = ArticleFormSet () >>> for form ...
ate" id="id_form-0-pub_date"></td></tr> もし、 max_num の値が初期データ内に存在するオブジェクトの合計より ...
-
https://man.plustar.jp/django/topics/forms/formsets.html
- [similar]
- モデルフォーム関数 — Django 4.0.6 ドキュメント 9501
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
= 1 , can_delete = False , can_order = False , max_num = None , fields = None , exclude = None , widgets ...
, help_texts = None , error_messages = None , min_num = None , validate_min = False , field_classes = No ...
nts formset , extra , can_delete , can_order , max_num , validate_max , min_num , validate_min , absolute ...
= 3 , can_order = False , can_delete = True , max_num = None , formfield_callback = None , widgets = Non ...
-
https://man.plustar.jp/django/ref/forms/models.html
- [similar]
- Formset Functions — Django 4.0.6 ドキュメント 9252
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
= 1 , can_order = False , can_delete = False , max_num = None , validate_max = False , min_num = None , v ...
e , max , formset , extra , form , factory , min , num クイック検索 Last update: 2022年6月01日 « previous ...
-
https://man.plustar.jp/django/ref/forms/formsets.html
- [similar]
- モデルからフォームを作成する — Django 4.0.6 ドキュメント 8409
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
ds or extra methods on a parent class for use in a number of forms derived from models. For example, usin ...
INITIAL_FORMS"><input type="hidden" name="form-MIN_NUM_FORMS" value="0" id="id_form-MIN_NUM_FORMS"><input ...
type="hidden" name="form-MAX_NUM_FORMS" value="1000" id="id_form-MAX_NUM_FORMS"> <t ...
del instance. If the length of initial exceeds the number of extra forms, the excess initial data is igno ...
-
https://man.plustar.jp/django/topics/forms/modelforms.html
- [similar]
- GDAL API — Django 4.0.6 ドキュメント 8331
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
data of your own to use, GeoDjango tests contain a number of data sets that you can use for testing. You ...
ayer, represented by a Layer object, contains some number of geographic features ( Feature ), information ...
nly contains one layer 1 layer_count ¶ Returns the number of layers in the data source. name ¶ Returns th ...
ayer in the data source. >>> layer . name 'cities' num_feat ¶ Returns the number of features in the layer ...
-
https://man.plustar.jp/django/ref/contrib/gis/gdal.html
- [similar]
- Django 1.2 リリースノート — Django 4.0.6 ドキュメント 8159
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
of custom Field subclasses should be aware that a number of methods have had a change in prototype, deta ...
Python 2.7. This change should affect only a small number of Django users, as most operating-system vendo ...
form processing. That means, if enabled, dates and numbers on templates will be displayed using the forma ...
d python manage.py test ) no longer represents the number of failed tests, because a failure of 256 or mo ...
-
https://man.plustar.jp/django/releases/1.2.html
- [similar]
- ページネーション — Django 4.0.6 ドキュメント 8081
- " + tagname + " "); } }); $("div.highlight\\-html\\+django span.nf").each(function(i, elem) { va
...
イズ例 ¶ Give Paginator a list of objects, plus the number of items you'd like to have on each page, and i ...
Paginator ( objects , 2 ) >>> p . count 4 >>> p . num_pages 2 >>> type ( p . page_range ) <class 'range_ ...
e2 . has_other_pages () True >>> page2 . next_page_number () Traceback (most recent call last): ... Empty ...
page contains no results >>> page2 . previous_page_number () 1 >>> page2 . start_index () # The 1-based i ...
-
https://man.plustar.jp/django/topics/pagination.html
- [similar]