タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

manytomanyに関するa1ghostのブックマーク (2)

  • charles leifer | Self-referencing many-to-many through

    Self-referencing many-to-many through January 16, 2010 18:36 / django many-to-many python / 3 comments Django's ManyToMany through attribute allows you to describe relationships between objects. I've written a post about this - (Describing Relationships, Django's ManyToMany Through) - and so I won't cover here the details of its implementation or usage. What I want to talk about in this post is ho

    a1ghost
    a1ghost 2015/01/13
    manytomanyの自分自身へのリレーション
  • Django

    モデル¶ モデルは、データに関する唯一かつ決定的な情報源です。あなたが保持するデータが必要とするフィールドとその動作を定義します。一般的に、各モデルは単一のデータベースのテーブルに対応付けられます。 基: モデルは各々 Python のクラスであり django.db.models.Model のサブクラスです。 モデルの属性はそれぞれがデータベースのフィールドを表します。 これら全てを用いて、Django はデータベースにアクセスする自動生成された API を提供します。 クエリを作成する を参照してください。 from django.db import models class Person(models.Model): first_name = models.CharField(max_length=30) last_name = models.CharField(max_leng

    Django
    a1ghost
    a1ghost 2015/01/13
    連関エンティティの扱い方
  • 1