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
a6e3fb80
Kaydet (Commit)
a6e3fb80
authored
Ock 16, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #21343 -- Noted many-to-many restrictions with intermediate model.
Thanks EvilDMP for the report.
üst
c05b2f58
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
relations.txt
docs/ref/models/relations.txt
+6
-2
many_to_many.txt
docs/topics/db/examples/many_to_many.txt
+4
-1
No files found.
docs/ref/models/relations.txt
Dosyayı görüntüle @
a6e3fb80
...
...
@@ -138,10 +138,14 @@ Related objects reference
.. note::
Note that ``add()``, ``create()``, ``remove()``, and ``clear()`` all
apply database changes immediately for all types of related fields. In
other
words, there is no need to call ``save()`` on either end of the
apply database changes immediately for all types of related fields. In
other
words, there is no need to call ``save()`` on either end of the
relationship.
Also, if you are using :ref:`an intermediate model
<intermediary-manytomany>` for a many-to-many relationship, some of the
related manager's methods are disabled.
.. _direct-assignment:
Direct Assignment
...
...
docs/topics/db/examples/many_to_many.txt
Dosyayı görüntüle @
a6e3fb80
...
...
@@ -35,7 +35,10 @@ objects, and a ``Publication`` has multiple ``Article`` objects:
ordering = ('headline',)
What follows are examples of operations that can be performed using the Python
API facilities.
API facilities. Note that if you are using :ref:`an intermediate model
<intermediary-manytomany>` for a many-to-many relationship, some of the related
manager's methods are disabled, so some of these examples won't work with such
models.
Create a couple of ``Publications``::
...
...
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