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
69478859
Kaydet (Commit)
69478859
authored
Agu 13, 2014
tarafından
Ola Sitarska
Kaydeden (comit)
Tim Graham
Agu 13, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed #23283 -- Added default=False to BooleanField's in the docs.
Thanks Baptiste for the suggestion.
üst
e5376999
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
1.7.txt
docs/releases/1.7.txt
+1
-1
one_to_one.txt
docs/topics/db/examples/one_to_one.txt
+2
-2
models.txt
docs/topics/db/models.txt
+2
-2
serialization.txt
docs/topics/serialization.txt
+1
-1
No files found.
docs/releases/1.7.txt
Dosyayı görüntüle @
69478859
...
@@ -185,7 +185,7 @@ class method can now directly :ref:`create Manager with QuerySet methods
...
@@ -185,7 +185,7 @@ class method can now directly :ref:`create Manager with QuerySet methods
class Food(models.Model):
class Food(models.Model):
kind = models.CharField(max_length=50)
kind = models.CharField(max_length=50)
vegetarian = models.BooleanField()
vegetarian = models.BooleanField(
default=False
)
objects = FoodQuerySet.as_manager()
objects = FoodQuerySet.as_manager()
Food.objects.pizzas().vegetarian()
Food.objects.pizzas().vegetarian()
...
...
docs/topics/db/examples/one_to_one.txt
Dosyayı görüntüle @
69478859
...
@@ -21,8 +21,8 @@ In this example, a ``Place`` optionally can be a ``Restaurant``:
...
@@ -21,8 +21,8 @@ In this example, a ``Place`` optionally can be a ``Restaurant``:
class Restaurant(models.Model):
class Restaurant(models.Model):
place = models.OneToOneField(Place, primary_key=True)
place = models.OneToOneField(Place, primary_key=True)
serves_hot_dogs = models.BooleanField()
serves_hot_dogs = models.BooleanField(
default=False
)
serves_pizza = models.BooleanField()
serves_pizza = models.BooleanField(
default=False
)
def __str__(self): # __unicode__ on Python 2
def __str__(self): # __unicode__ on Python 2
return "%s the restaurant" % self.place.name
return "%s the restaurant" % self.place.name
...
...
docs/topics/db/models.txt
Dosyayı görüntüle @
69478859
...
@@ -1006,8 +1006,8 @@ For example::
...
@@ -1006,8 +1006,8 @@ For example::
address = models.CharField(max_length=80)
address = models.CharField(max_length=80)
class Restaurant(Place):
class Restaurant(Place):
serves_hot_dogs = models.BooleanField()
serves_hot_dogs = models.BooleanField(
default=False
)
serves_pizza = models.BooleanField()
serves_pizza = models.BooleanField(
default=False
)
All of the fields of ``Place`` will also be available in ``Restaurant``,
All of the fields of ``Place`` will also be available in ``Restaurant``,
although the data will reside in a different database table. So these are both
although the data will reside in a different database table. So these are both
...
...
docs/topics/serialization.txt
Dosyayı görüntüle @
69478859
...
@@ -84,7 +84,7 @@ model will be serialized. For example, consider the following models::
...
@@ -84,7 +84,7 @@ model will be serialized. For example, consider the following models::
name = models.CharField(max_length=50)
name = models.CharField(max_length=50)
class Restaurant(Place):
class Restaurant(Place):
serves_hot_dogs = models.BooleanField()
serves_hot_dogs = models.BooleanField(
default=False
)
If you only serialize the Restaurant model::
If you only serialize the Restaurant model::
...
...
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