per page, with , order by , clip by
Results of 1 - 8 of about 8 for Dogs (0.005 sec.)
一対一 (one-to-one) 関係 — Django 6.1 ドキュメント 12182
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 一対一 (one-to-one) 関係 ¶ 一対一の関係を定義するには、 OneToOneField を使用します。 この例では、 Place は任意で Restaurant になることができます: fr ... odels . Model ): place = models . OneToOneField ( Place , on_delete = models . CASCADE , primary_key = True , ) serves_hot_dogs = models . BooleanField ( default = False ) serves_pizza = models . BooleanField ( default = False ) def __str__ ( self ): ... taurant ) 以下は、Python API の機能を使って実行できる操作の例です。 2つの Place を作成する: >>> p1 = Place ( name = "Demon Dogs" , address = "944 W. Fullerton" ) >>> p1 . save () >>> p2 = Place ( name = "Ace Hardware" , address = "1013 N. Ashland" ) ... ストランを作成する。オブジェクトの主キーとして "parent" オブジェクトを渡します: >>> r = Restaurant ( place = p1 , serves_hot_dogs = True , serves_pizza = False ) >>> r . save () Restaurant は自身の place にアクセスできます: >>> r . place <Place: Demon ...
https://man.mtool.work/django/6.1/topics/db/examples/one_to_one.html
一対一 (one-to-one) 関係 — Django 6.1 ドキュメント 12146
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » 一対一 (one-to-one) 関係 ¶ 一対一の関係を定義するには、 OneToOneField を使用します。 この例では、 Place は任意で Restaurant になることができます: fr ... odels . Model ): place = models . OneToOneField ( Place , on_delete = models . CASCADE , primary_key = True , ) serves_hot_dogs = models . BooleanField ( default = False ) serves_pizza = models . BooleanField ( default = False ) def __str__ ( self ): ... taurant ) 以下は、Python API の機能を使って実行できる操作の例です。 2つの Place を作成する: >>> p1 = Place ( name = "Demon Dogs" , address = "944 W. Fullerton" ) >>> p1 . save () >>> p2 = Place ( name = "Ace Hardware" , address = "1013 N. Ashland" ) ... ストランを作成する。オブジェクトの主キーとして "parent" オブジェクトを渡します: >>> r = Restaurant ( place = p1 , serves_hot_dogs = True , serves_pizza = False ) >>> r . save () Restaurant は自身の place にアクセスできます: >>> r . place <Place: Demon ...
https://man.mtool.work/django/6.1/topics/db/examples/one_to_one.html
Django 3.1 リリースノート — Django 6.1 ドキュメント 8043
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 3.1 リリースノート ¶ August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレ ... SONField () ContactInfo . objects . create ( data = { "name" : "John" , "cities" : [ "London" , "Cambridge" ], "pets" : { "dogs" : [ "Rufus" , "Meg" ]}, } ) ContactInfo . objects . filter ( data__name = "John" , data__pets__has_key = "dogs" , data__c ...
https://man.mtool.work/django/6.1/releases/3.1.html
Django 3.1 リリースノート — Django 6.1 ドキュメント 8043
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django 3.1 リリースノート ¶ August 4, 2020 Django 3.1 へようこそ! このリリースノートでは、 バージョン 3.1 の新機能 と、Django 3.0 以前からアップグレ ... SONField () ContactInfo . objects . create ( data = { "name" : "John" , "cities" : [ "London" , "Cambridge" ], "pets" : { "dogs" : [ "Rufus" , "Meg" ]}, } ) ContactInfo . objects . filter ( data__name = "John" , data__pets__has_key = "dogs" , data__c ...
https://man.mtool.work/django/6.1/releases/3.1.html
Django オブジェクトのシリアライズ — Django 6.1 ドキュメント 8025
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django オブジェクトのシリアライズ ¶ Django のシリアライズフレームワークは、Django のモデルを他のフォーマットに「翻訳」する仕組みを提供します。通常、 ... さい。 class Place ( models . Model ): name = models . CharField ( max_length = 50 ) class Restaurant ( Place ): serves_hot_dogs = models . BooleanField ( default = False ) もし次のように Reastaurant モデルだけをシリアライズした場合、 data = serialize ... rs . serialize ( "json" , Restaurant . objects . all ()) シリアライズされた出力のフィールドには、 serves_hot_dogs 属性だけが含まれます。ベースクラスの name 属性は無視されます。 Restaurant インスタンスを完全にシリアライズするためには、 P ...
https://man.mtool.work/django/6.1/topics/serialization.html
Django オブジェクトのシリアライズ — Django 6.1 ドキュメント 8025
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » Django オブジェクトのシリアライズ ¶ Django のシリアライズフレームワークは、Django のモデルを他のフォーマットに「翻訳」する仕組みを提供します。通常、 ... さい。 class Place ( models . Model ): name = models . CharField ( max_length = 50 ) class Restaurant ( Place ): serves_hot_dogs = models . BooleanField ( default = False ) もし次のように Reastaurant モデルだけをシリアライズした場合、 data = serialize ... rs . serialize ( "json" , Restaurant . objects . all ()) シリアライズされた出力のフィールドには、 serves_hot_dogs 属性だけが含まれます。ベースクラスの name 属性は無視されます。 Restaurant インスタンスを完全にシリアライズするためには、 P ...
https://man.mtool.work/django/6.1/topics/serialization.html
モデル — Django 6.1 ドキュメント 7880
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデル ¶ モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは ... ls . CharField ( max_length = 50 ) address = models . CharField ( max_length = 80 ) class Restaurant ( Place ): serves_hot_dogs = models . BooleanField ( default = False ) serves_pizza = models . BooleanField ( default = False ) データはデータベースの ...
https://man.mtool.work/django/6.1/topics/db/models.html
モデル — Django 6.1 ドキュメント 7880
Django 6.1 ドキュメント Home | Table of contents | Index | Modules « previous | up | next » モデル ¶ モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは ... ls . CharField ( max_length = 50 ) address = models . CharField ( max_length = 80 ) class Restaurant ( Place ): serves_hot_dogs = models . BooleanField ( default = False ) serves_pizza = models . BooleanField ( default = False ) データはデータベースの ...
https://man.mtool.work/django/6.1/topics/db/models.html
PREV 1 NEXT