티스토리 수익 글 보기
このドキュメントの Django のバージョンにはセキュリティ上の脆弱性があるため、すでにサポートが終了されています。新しいバージョンにアップグレードしてください!
Skip to main content
Model クラスのリファレンス¶
This document covers features of the Model class.
For more information about models, see the complete list of Model
reference guides.
属性¶
objects¶
-
Model.objects¶ Each non-abstract
Modelclass must have aManagerinstance added to it. Django ensures that in your model class you have at least a defaultManagerspecified. If you don’t add your ownManager, Django will add an attributeobjectscontaining defaultManagerinstance. If you add your ownManagerinstance attribute, the default one does not appear. Consider the following example:from django.db import models class Person(models.Model): # Add manager with another name people = models.Manager()
For more details on model managers see Managers and Retrieving objects.
追加的な情報
Support Django!
コンテンツ
助けを求める
- FAQ
- FAQ では、よくある質問とそれに対する答えが読めます。
- 目次, モジュールの目次, or 目次
- 特定の情報を見つけたい場合に便利です。
- Django Discord サーバ
- Django Discord コミュニティに参加しましょう。
- 公式 Django フォーラム
- Django フォーラムのコミュニティに参加しましょう。
- チケットトラッカー
- Django または Django ドキュメントにバグを見つけた場合は、チケットトラッカーから報告してください。
ダウンロード:
オフライン (Django 2.1):
HTML |
PDF |
ePub
Read the Docs により提供されています。