Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
D
django
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
django
Commits
8eae0946
Kaydet (Commit)
8eae0946
authored
Agu 06, 2018
tarafından
Simon Charette
Kaydeden (comit)
Tim Graham
Kas 13, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Generalized check constraint docs for other constraints.
üst
d0af5de1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
15 deletions
+14
-15
constraints.txt
docs/ref/models/constraints.txt
+9
-10
index.txt
docs/ref/models/index.txt
+1
-1
options.txt
docs/ref/models/options.txt
+2
-2
2.2.txt
docs/releases/2.2.txt
+2
-2
No files found.
docs/ref/models/c
heck-c
onstraints.txt
→
docs/ref/models/constraints.txt
Dosyayı görüntüle @
8eae0946
=====================
======
C
heck c
onstraints reference
=====================
======
=====================
Constraints reference
=====================
.. module:: django.db.models.constraints
...
...
@@ -8,20 +8,19 @@ Check constraints reference
.. versionadded:: 2.2
The ``CheckConstraint`` class creates database check constraints. They are
added in the model :attr:`Meta.constraints
<django.db.models.Options.constraints>` option. This document
explains the API references of :class:`CheckConstraint`.
The classes defined in this module create database constraints. They are added
in the model :attr:`Meta.constraints <django.db.models.Options.constraints>`
option.
.. admonition:: Referencing built-in constraints
Constraints are defined in ``django.db.models.constraints``, but for
convenience they're imported into :mod:`django.db.models`. The standard
convention is to use ``from django.db import models`` and refer to the
constraints as ``models.
Check
Constraint``.
constraints as ``models.
<Foo>
Constraint``.
``CheckConstraint``
options
===================
========
``CheckConstraint``
===================
.. class:: CheckConstraint(*, check, name)
...
...
docs/ref/models/index.txt
Dosyayı görüntüle @
8eae0946
...
...
@@ -9,7 +9,7 @@ Model API reference. For introductory material, see :doc:`/topics/db/models`.
fields
indexes
c
heck-c
onstraints
constraints
meta
relations
class
...
...
docs/ref/models/options.txt
Dosyayı görüntüle @
8eae0946
...
...
@@ -459,8 +459,8 @@ Django quotes column and table names behind the scenes.
.. versionadded:: 2.2
A list of :doc:`constraints </ref/models/c
heck-constraints>` that you want
to
define on the model::
A list of :doc:`constraints </ref/models/c
onstraints>` that you want to
define on the model::
from django.db import models
...
...
docs/releases/2.2.txt
Dosyayı görüntüle @
8eae0946
...
...
@@ -30,8 +30,8 @@ officially support the latest release of each series.
What's new in Django 2.2
========================
C
heck C
onstraints
-----------
------
Constraints
-----------
The new :class:`~django.db.models.CheckConstraint` class enables adding custom
database constraints. Constraints are added to models using the
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment