Skip to main content
Ctrl+K
  • Django documentation
  • Getting started
  • Using Django
  • How-to guides
  • Django FAQ
  • API Reference
    • Meta-documentation and miscellany
    • Glossary
    • Release notes
    • Django internals
    • Project homepage
  • Django documentation
  • Getting started
  • Using Django
  • How-to guides
  • Django FAQ
  • API Reference
  • Meta-documentation and miscellany
  • Glossary
  • Release notes
  • Django internals
  • Project homepage

Section Navigation

  • Applications
  • System check framework
  • Built-in class-based views API
    • Base views
    • Generic display views
    • Generic editing views
    • Generic date views
    • Class-based views mixins
      • Simple mixins
      • Single object mixins
      • Multiple object mixins
      • Editing mixins
      • Date-based mixins
    • Class-based generic views - flattened index
  • Clickjacking Protection
  • contrib packages
    • The Django admin site
      • Admin actions
      • ModelAdmin List Filters
      • The Django admin documentation generator
      • JavaScript customizations in the admin
    • django.contrib.auth
    • The contenttypes framework
    • The flatpages app
    • GeoDjango
      • GeoDjango Tutorial
      • GeoDjango Installation
        • Installing Geospatial libraries
        • Installing PostGIS
        • Installing SpatiaLite
      • GeoDjango Model API
      • GeoDjango Database API
      • GeoDjango Forms API
      • GIS QuerySet API Reference
      • Geographic Database Functions
      • Measurement Objects
      • GEOS API
      • GDAL API
      • Geolocation with GeoIP2
      • GeoDjango Utilities
        • LayerMapping data import utility
        • OGR Inspection
        • GeoJSON Serializer
      • GeoDjango Management Commands
      • GeoDjango’s admin site
      • Geographic Feeds
      • Geographic Sitemaps
      • Testing GeoDjango apps
      • Deploying GeoDjango
    • django.contrib.humanize
    • The messages framework
    • django.contrib.postgres
      • PostgreSQL specific aggregation functions
      • PostgreSQL specific database constraints
      • PostgreSQL specific query expressions
      • PostgreSQL specific model fields
      • PostgreSQL specific form fields and widgets
      • PostgreSQL specific database functions
      • PostgreSQL specific model indexes
      • PostgreSQL specific lookups
      • Database migration operations
      • Full text search
      • Validators
    • The redirects app
    • The sitemap framework
    • The “sites” framework
    • The staticfiles app
    • The syndication feed framework
  • Content Security Policy
  • Cross Site Request Forgery protection
  • Databases
  • django-admin and manage.py
  • Django Exceptions
  • File handling
    • The File object
    • File storage API
    • Uploaded Files and Upload Handlers
  • Forms
    • The Forms API
    • Form fields
    • Model forms
    • Formset Functions
    • The form rendering API
    • Widgets
    • Form and field validation
  • Logging
  • Middleware
  • Migration Operations
  • Models
    • Model field reference
    • Model index reference
    • Constraints reference
    • Model _meta API
    • Related objects reference
    • Model class reference
    • Model Meta options
    • Model instance reference
    • QuerySet API reference
    • Lookup API reference
    • Query Expressions
    • Conditional Expressions
    • Database Functions
  • Paginator
  • Request and response objects
  • SchemaEditor
  • Settings
  • Signals
  • Tasks
  • Templates
    • The Django template language
    • Built-in template tags and filters
    • The Django template language: for Python programmers
  • TemplateResponse and SimpleTemplateResponse
  • Unicode data
  • django.urls utility functions
  • django.urls functions for use in URLconfs
  • Django Utils
  • Validators
  • Built-in Views

Indices

  • General Index
  • Python Module Index
  • API Reference
  • Models

Models#

Model API reference. For introductory material, see Models.

  • Model field reference
  • Field attribute reference
  • Model index reference
  • Constraints reference
  • Model _meta API
  • Related objects reference
  • Model class reference
  • Model Meta options
  • Model instance reference
  • QuerySet API reference
  • Lookup API reference
  • Query Expressions
  • Conditional Expressions
  • Database Functions

previous

Migration Operations

next

Model field reference

Show Source

© Copyright Django Software Foundation and contributors.

Last updated on Jul 17, 2026.

Created using Sphinx 9.1.0.

Built with the PyData Sphinx Theme 0.20.0.