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
6e4a3458
Kaydet (Commit)
6e4a3458
authored
Eyl 01, 2017
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #28557 -- Fixed ForeignKey/OneToOneField/ManyToManyField argument name in docs.
üst
04050bff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
fields.txt
docs/ref/models/fields.txt
+5
-5
No files found.
docs/ref/models/fields.txt
Dosyayı görüntüle @
6e4a3458
...
...
@@ -1137,10 +1137,10 @@ Django also defines a set of fields that represent relations.
``ForeignKey``
--------------
.. class:: ForeignKey(
othermodel
, on_delete, **options)
.. class:: ForeignKey(
to
, on_delete, **options)
A many-to-one relationship. Requires
a positional argument: the class to which
the model is related
.
A many-to-one relationship. Requires
two positional arguments: the class to
which the model is related and the :attr:`~ForeignKey.on_delete` option
.
.. _recursive-relationships:
...
...
@@ -1430,7 +1430,7 @@ The possible values for :attr:`~ForeignKey.on_delete` are found in
``ManyToManyField``
-------------------
.. class:: ManyToManyField(
othermodel
, **options)
.. class:: ManyToManyField(
to
, **options)
A many-to-many relationship. Requires a positional argument: the class to
which the model is related, which works exactly the same as it does for
...
...
@@ -1633,7 +1633,7 @@ relationship at the database level.
``OneToOneField``
-----------------
.. class:: OneToOneField(
othermodel
, on_delete, parent_link=False, **options)
.. class:: OneToOneField(
to
, on_delete, parent_link=False, **options)
A one-to-one relationship. Conceptually, this is similar to a
:class:`ForeignKey` with :attr:`unique=True <Field.unique>`, but 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