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
c7b5883c
Kaydet (Commit)
c7b5883c
authored
Eyl 30, 2014
tarafından
Tim Graham
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed flake8 warnings.
üst
f5cfd09c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
models.py
tests/test_utils/models.py
+3
-0
No files found.
tests/test_utils/models.py
Dosyayı görüntüle @
c7b5883c
from
django.db
import
models
from
django.utils.encoding
import
python_2_unicode_compatible
@python_2_unicode_compatible
class
Car
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
100
)
...
...
@@ -8,6 +9,7 @@ class Car(models.Model):
def
__str__
(
self
):
return
self
.
name
@python_2_unicode_compatible
class
Person
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
100
)
...
...
@@ -16,6 +18,7 @@ class Person(models.Model):
def
__str__
(
self
):
return
self
.
name
@python_2_unicode_compatible
class
PossessedCar
(
models
.
Model
):
car
=
models
.
ForeignKey
(
Car
)
...
...
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