Skip to content

djangodocs

Django 5.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
简体中文
  • English
  • 简体中文
  • Français
  • 日本語
  • Bahasa Indonesia
  • Italiano
  • Português (Brasil)
  • 한국어
  • Español
  • Ελληνικά
  • Polski
Documentation contents
  • Django 文档
  • 开始
  • 使用 Django
  • 操作指南
  • Django FAQ
  • API 参考
    • 应用程序
    • 系统检查框架
    • 内置基于类的视图 API
    • 点击劫持保护
    • contrib 包
    • 跨站请求伪造保护
    • 数据库
    • django-admin 和 manage.py
    • Django 异常
    • 文件处理
    • 表单
    • 日志
    • 中间件
    • 迁移操作
    • 模型
      • 模型字段参考
      • 模型索引参考
      • 约束参考
      • 模型 _meta API
      • 关联对象参考
      • 模型类参考
      • 模型 Meta 选项
      • 模型实例参考
      • QuerySet API 参考
      • 查找 API 参考
      • 查询表达式
      • 条件表达式
      • 数据库函数
    • 分页器
    • 请求和响应对象
    • SchemaEditor
    • 配置
    • 信号
    • 模板
    • TemplateResponse 和 SimpleTemplateResponse
    • Unicode 数据
    • django.urls 实用函数
    • URLconfs 中使用的 django.urls 函数
    • Django 实用程序
    • 验证器
    • 内置视图
  • 元文件和杂记
  • 术语
  • 发行说明
  • Django内部
Django 5.0 is no longer supported. It receives no security fixes. Use it for reference only. Latest release
Chinese (Simplified) translation. Contributed by the Django community. 100% Help translate
  1. Django 5.0
  2. API 参考

模型Link to this heading#

模型 API 参考。关于介绍性材料,见 模型。

  • 模型字段参考
  • 字段属性参考
  • 模型索引参考
  • 约束参考
  • 模型 _meta API
  • 关联对象参考
  • 模型类参考
  • 模型 Meta 选项
  • 模型实例参考
  • QuerySet API 参考
  • 查找 API 参考
  • 查询表达式
  • 条件表达式
  • 数据库函数

This page as Markdown JSON

Edit this page on GitHub Official version

Previous迁移操作 Next模型字段参考

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