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
08c8c3ea
Kaydet (Commit)
08c8c3ea
authored
Eyl 29, 2017
tarafından
Stefan Schneider
Kaydeden (comit)
Tim Graham
Eyl 29, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #28653 -- Added missing ForeignKey.on_delete argument in docs.
üst
3fa0a824
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
querysets.txt
docs/ref/models/querysets.txt
+1
-1
conditional-view-processing.txt
docs/topics/conditional-view-processing.txt
+1
-1
aggregation.txt
docs/topics/db/aggregation.txt
+1
-1
queries.txt
docs/topics/db/queries.txt
+1
-1
No files found.
docs/ref/models/querysets.txt
Dosyayı görüntüle @
08c8c3ea
...
...
@@ -1064,7 +1064,7 @@ fields. Suppose we have an additional model to the example above::
class Restaurant(models.Model):
pizzas = models.ManyToManyField(Pizza, related_name='restaurants')
best_pizza = models.ForeignKey(Pizza, related_name='championed_by')
best_pizza = models.ForeignKey(Pizza, related_name='championed_by'
, on_delete=models.CASCADE
)
The following are all legal:
...
...
docs/topics/conditional-view-processing.txt
Dosyayı görüntüle @
08c8c3ea
...
...
@@ -80,7 +80,7 @@ Suppose you have this pair of models, representing a simple blog system::
...
class Entry(models.Model):
blog = models.ForeignKey(Blog)
blog = models.ForeignKey(Blog
, on_delete=models.CASCADE
)
published = models.DateTimeField(default=datetime.datetime.now)
...
...
...
docs/topics/db/aggregation.txt
Dosyayı görüntüle @
08c8c3ea
...
...
@@ -34,7 +34,7 @@ used to track the inventory for a series of online bookstores:
price = models.DecimalField(max_digits=10, decimal_places=2)
rating = models.FloatField()
authors = models.ManyToManyField(Author)
publisher = models.ForeignKey(Publisher)
publisher = models.ForeignKey(Publisher
, on_delete=models.CASCADE
)
pubdate = models.DateField()
class Store(models.Model):
...
...
docs/topics/db/queries.txt
Dosyayı görüntüle @
08c8c3ea
...
...
@@ -34,7 +34,7 @@ models, which comprise a Weblog application:
return self.name
class Entry(models.Model):
blog = models.ForeignKey(Blog)
blog = models.ForeignKey(Blog
, on_delete=models.CASCADE
)
headline = models.CharField(max_length=255)
body_text = models.TextField()
pub_date = models.DateField()
...
...
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