Skip to content

djangodocs

Django 2.0
  • 6.1 current
  • 6.0
  • 5.2 LTS
  • 5.1 unsupported
  • 5.0 unsupported
  • 4.2 unsupported
  • 4.1 unsupported
  • 4.0 unsupported
  • 3.2 unsupported
  • 3.1 unsupported
  • 3.0 unsupported
  • 2.2 unsupported
  • 2.1 unsupported
  • 2.0 unsupported
  • 1.11 unsupported
  • 1.10 unsupported
  • 1.9 unsupported
日本語
  • English
  • 简体中文
  • Français
  • 日本語
  • Bahasa Indonesia
  • Português (Brasil)
  • 한국어
  • Español
  • Ελληνικά
  • Polski
Documentation contents
  • Django ドキュメント
  • さぁ始めましょう
  • Django を使う
    • Django のインストール方法
    • モデルとデータベース
      • モデル
      • クエリを作成する
      • アグリゲーション
      • 検索
      • マネージャ
      • 素の SQL 文の実行
      • データベースのトランザクション
      • 複数のデータベース
      • Tablespaces
      • Database access optimization
      • Database instrumentation
      • Examples of model relationship API usage
        • 多対多 (many-to-many) 関係
        • 多対一 (many-to-one) 関係
        • 一対一 (one-to-one) 関係
    • HTTP リクエストのハンドリング
    • フォームを使う
    • テンプレート
    • クラスベースビュー
    • マイグレーション
    • ファイルの管理
    • Django におけるテスト
    • Django でのユーザー認証
    • Django's cache framework
    • Conditional View Processing
    • 暗号署名
    • メールを送信する
    • 国際化とローカル化
    • ロギング
    • ページネーション
    • Django におけるセキュリティ
    • パフォーマンスと最適化
    • Django オブジェクトのシリアル化
    • Djangoの設定
    • Signals
    • System check framework
    • External packages
  • 「How-to」ガイド
  • Django FAQ よくある質問
  • API Reference
  • メタドキュメントとその他
  • 用語集
  • リリースノート
  • Django internals
Django 2.0 is no longer supported. It receives no security fixes. Use it for reference only. Latest release
Japanese translation. Untranslated passages appear in English. 30.7% Help translate
  1. Django 2.0
  2. Django を使う
  3. モデルとデータベース

Examples of model relationship API usageLink to this heading#

  • 多対多 (many-to-many) 関係
  • 多対一 (many-to-one) 関係
  • 一対一 (one-to-one) 関係
View as Markdown Edit this page on GitHub Official version
PreviousDatabase instrumentation Next多対多 (many-to-many) 関係

An unofficial rendering of the Django documentation.

Not affiliated with or endorsed by the Django Software Foundation. The documentation is copyright © Django Software Foundation and individual contributors, and is used under the BSD 3-Clause licence. “Django” is a trademark of the Django Software Foundation.

This translation is the work of the Django i18n community, not of this site. Read the official documentation at docs.djangoproject.com.

👋 Jason Cartwright