per page, with , order by , clip by
Results of 1 - 10 of about 47 for IntegerField (0.005 sec.)
PostgreSQL 固有のフォームフィールドとウィジェット 13969
PostgreSQL 固有のフォームフィールドとウィジェット これらのフィールドやウィジェットはすべて django.contrib.postgres.forms モジュールから利用できます。 フィールド SimpleArrayField class SimpleArrayField ( base_field , delimiter = ',' , max_le ... postgres.forms import SimpleArrayField >>> class NumberListForm ( forms . Form ): ... numbers = SimpleArrayField ( forms . IntegerField ()) ... >>> form = NumberListForm ({ "numbers" : "1,2,3" }) >>> form . is_valid () True >>> form . cleaned_data {'numbers' ... gres.forms import SimpleArrayField >>> class GridForm ( forms . Form ): ... places = SimpleArrayField ( SimpleArrayField ( IntegerField ()), delimiter = "|" ) ... >>> form = GridForm ({ "places" : "1,2|2,1|4,3" }) >>> form . is_valid () True >>> form . clean ... で、かつ remove_trailing_nulls が True の場合、末尾にのみ null 値が許され、その値は取り除かれます。 例: SplitArrayField ( IntegerField ( required = True ), size = 3 , remove_trailing_nulls = False ) [ "1" , "2" , "3" ] # -> [1, 2, 3] [ "1" , "2" , "" ] # -> ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/forms.html
GeoDjango チュートリアル 12023
GeoDjango チュートリアル はじめに GeoDjangoは、Django用の標準のcontribモジュールであり、それを世界クラスの地理情報Webフレームワークに変えます。GeoDjangoは、位置情報サービスなどの地理情報Webアプリケーションを作成するのを可能な限り簡単にするこ ... sponding to the attributes in the # world borders shapefile. name = models . CharField ( max_length = 50 ) area = models . IntegerField () pop2005 = models . IntegerField ( "Population 2005" ) fips = models . CharField ( "FIPS Code" , max_length = 2 , null = ... . CharField ( "2 Digit ISO" , max_length = 2 ) iso3 = models . CharField ( "3 Digit ISO" , max_length = 3 ) un = models . IntegerField ( "United Nations Code" ) region = models . IntegerField ( "Region Code" ) subregion = models . IntegerField ( "Sub-Region ... ( max_length = 2 ) iso2 = models . CharField ( max_length = 2 ) iso3 = models . CharField ( max_length = 3 ) un = models . IntegerField () name = models . CharField ( max_length = 50 ) area = models . IntegerField () pop2005 = models . IntegerField () region ...
https://man.mtool.work/django/6.1/ref/contrib/gis/tutorial.html
モデル _meta API 11142
モデル _meta API class Options [ソース] モデルの _meta API は、Django ORM のコアにあります。これにより、ルックアップ、クエリ、フォーム、admin などのシステムの他のパーツは、各モデルの機能を理解できるようになります。API は、各モデルクラスの _ ... models class TenantUser ( models . Model ): pk = models . CompositePrimaryKey ( "tenant_id" , "id" ) tenant_id = models . IntegerField () id = models . IntegerField () >>> TenantUser . _meta . pk_fields [ <django.db.models.fields.IntegerField: tenant_id>, < ... django.db.models.fields.IntegerField: id> ] Otherwise it will contain the single field declared as the primary key of the model, either explicitly with primary ...
https://man.mtool.work/django/6.1/ref/models/meta.html
モデルからフォームを作成する 9409
モデルからフォームを作成する ModelForm class ModelForm [ソース] データベース中心のアプリケーションを作成している場合、Django モデルに密接にマップするフォームを使うことになるでしょう。例えば、 BlogComment モデルを持っていて、閲覧者がコメント ... モデルフィールド フォームフィールド AutoField フォーム上では表示されません。 BigAutoField フォーム上では表示されません。 BigIntegerField IntegerField で min_value が -9223372036854775808 から max_value に 9223372036854775807 セットされます。 BinaryField edita ... FileField FilePathField FilePathField FloatField FloatField ForeignKey ModelChoiceField (see below) ImageField ImageField IntegerField IntegerField IPAddressField IPAddressField GenericIPAddressField GenericIPAddressField JSONField JSONField ManyToManyField ... ModelMultipleChoiceField (以下を参照) PositiveBigIntegerField IntegerField PositiveIntegerField IntegerField PositiveSmallIntegerField IntegerField SlugField SlugField SmallAutoField フ ...
https://man.mtool.work/django/6.1/topics/forms/modelforms.html
Django 1.10.6 リリースノート 9196
Django 1.10.6 リリースノート March 1, 2017 Django 1.10.6 fixes several bugs in 1.10.5. バグ修正 Fixed ClearableFileInput 's "Clear" checkbox on model form fields where the model field has a default ( #27805 ). Fixed RequestDataTooBig and To ... han generating a bad request response ( #27820 ). Fixed a crash on Oracle and PostgreSQL when subtracting DurationField or IntegerField from DateField ( #27828 ). Fixed query expression date subtraction accuracy on PostgreSQL for differences larger than a mo ...
https://man.mtool.work/django/6.1/releases/1.10.6.html
PostgreSQL 固有の集計関数 8755
PostgreSQL 固有の集計関数 これらの機能は、 django.contrib.postgres.aggregates モジュールから利用可能です。これらについての詳細は、 PostgreSQLドキュメント に記載されています。 注釈 すべての関数はデフォルトのエイリアスを持たないので、明示的に ... 使用例: class Comment ( models . Model ): body = models . TextField () published = models . BooleanField () rank = models . IntegerField () >>> from django.db.models import Q >>> from django.contrib.postgres.aggregates import BoolAnd >>> Comment . objects . a ... 使用例: class Comment ( models . Model ): body = models . TextField () published = models . BooleanField () rank = models . IntegerField () >>> from django.db.models import Q >>> from django.contrib.postgres.aggregates import BoolOr >>> Comment . objects . ag ... または式のタプルもしくはリスト)。 ArrayAgg.order_by と同じ例です。 使用例: class Room ( models . Model ): number = models . IntegerField ( unique = True ) class HotelReservation ( models . Model ): room = models . ForeignKey ( "Room" , on_delete = models . CA ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/aggregates.html
PostgreSQL 固有のモデルフィールド 8755
PostgreSQL 固有のモデルフィールド これらのフィールドは全て django.contrib.postgres.fields モジュールから利用できます。 これらのフィールドにインデックスを付ける Index と Field.db_index は両方とも B-tree インデックスを作成しますが、複雑なデー ... 数です。 配列のベースとなるデータ型や動作を指定します。これは、 Field のサブクラスのインスタンスである必要があります。例えば IntegerField や CharField などが考えられます。ほとんどのフィールドタイプが許容されますが、リレーショナルデータを処理するもの ( ForeignK ... import ArrayField from django.db import models class Board ( models . Model ): pieces = ArrayField ( ArrayField ( models . IntegerField ())) # Valid Board ( pieces = [ [ 2 , 3 ], [ 2 , 1 ], ] ) # Not valid Board ( pieces = [ [ 2 , 3 ], [ 2 ], ] ) 不規則な形状 ... [<Post: First post>, <Post: Second post>, <Post: Third post>]> len 配列の長さを返します。この後に利用可能なルックアップは IntegerField で利用可能なものです。たとえば: >>> Post . objects . create ( name = "First post" , tags = [ "thoughts" , "django" ]) >>> ...
https://man.mtool.work/django/6.1/ref/contrib/postgres/fields.html
モデルフィールドリファレンス 8542
モデルフィールドリファレンス このドキュメントには、Django が提供するフィールドオプション field options とフィールド型 field types を含む、 Field のすべての API リファレンスが記載されています。 注釈 フィールドは django.db.models.fields に定義 ... Card ( models . Model ): class Suit ( models . IntegerChoices ): DIAMOND = 1 SPADE = 2 HEART = 3 CLUB = 4 suit = models . IntegerField ( choices = Suit ) また、 Enum Functional API を利用することもできます。この場合、ラベルは上記のように自動的に生成されます ... , ) ) データベースのデフォルトは、他のフィールドやモデルを参照することはできません。例えば、これは無効です: end = models . IntegerField ( db_default = F ( "start" ) + 50 ) もし db_default と Field.default の両方が指定された場合、Python コードでインスタンスを ... ださい。 フィールドの型 AutoField class AutoField ( ** options ) [ソース] 利用可能な ID に応じて、自動的にインクリメントする IntegerField です。通常は直接使う必要はありません; 指定しない場合は、主キーのフィールドが自動的にモデルに追加されます。 自動インクリメン ...
https://man.mtool.work/django/6.1/ref/models/fields.html
Django 1.0 リリースノート 8314
Django 1.0 リリースノート Django 1.0 へようこそ! We've been looking forward to this moment for over three years, and it's finally here. Django 1.0 represents the largest milestone in Django's development to date: a web framework that a grou ... wing are not valid : class Parent ( models . Model ): name = models . CharField ( max_length = 10 ) other_value = models . IntegerField ( unique = True ) class Child ( Parent ): father = models . OneToOneField ( Parent , primary_key = True , to_field = "othe ... r_value" , parent_link = True ) value = models . IntegerField () This bug will be fixed in the next release of Django. Caveats with support of certain databases Django attempts to supp ...
https://man.mtool.work/django/6.1/releases/1.0.html
Django 1.8.6 リリースノート 8314
Django 1.8.6 リリースノート November 4, 2015 Django 1.8.6 adds official support for Python 3.5 and fixes several bugs in 1.8.5. バグ修正 Fixed a regression causing ModelChoiceField to ignore prefetch_related() on its queryset ( #25496 ). Al ... o in the name of the strictly_above PostGIS lookup ( #25592 ). Fixed crash with contrib.postgres.forms.SplitArrayField and IntegerField on invalid value ( #25597 ). Added a helpful error message when Django and South migrations exist in the same directory ( ...
https://man.mtool.work/django/6.1/releases/1.8.6.html
PREV 1 2 3 4 5 NEXT