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
d611a892
Kaydet (Commit)
d611a892
authored
May 10, 2017
tarafından
Florian Apolloner
Kaydeden (comit)
GitHub
May 10, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Decreased max_length for char fields unless absolutely needed. (#8485)
üst
60f51290
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
13 deletions
+13
-13
models.py
tests/defer_regress/models.py
+6
-6
article.py
tests/foreign_object/models/article.py
+1
-1
models.py
tests/generic_views/models.py
+2
-2
models.py
tests/get_or_create/models.py
+1
-1
models.py
tests/model_fields/models.py
+1
-1
models.py
tests/model_inheritance_regress/models.py
+1
-1
models.py
tests/servers/models.py
+1
-1
No files found.
tests/defer_regress/models.py
Dosyayı görüntüle @
d611a892
...
@@ -76,11 +76,11 @@ class ItemAndSimpleItem(models.Model):
...
@@ -76,11 +76,11 @@ class ItemAndSimpleItem(models.Model):
class
Profile
(
models
.
Model
):
class
Profile
(
models
.
Model
):
profile1
=
models
.
CharField
(
max_length
=
1000
,
default
=
'profile1'
)
profile1
=
models
.
CharField
(
max_length
=
255
,
default
=
'profile1'
)
class
Location
(
models
.
Model
):
class
Location
(
models
.
Model
):
location1
=
models
.
CharField
(
max_length
=
1000
,
default
=
'location1'
)
location1
=
models
.
CharField
(
max_length
=
255
,
default
=
'location1'
)
class
Request
(
models
.
Model
):
class
Request
(
models
.
Model
):
...
@@ -88,10 +88,10 @@ class Request(models.Model):
...
@@ -88,10 +88,10 @@ class Request(models.Model):
location
=
models
.
ForeignKey
(
Location
,
models
.
CASCADE
)
location
=
models
.
ForeignKey
(
Location
,
models
.
CASCADE
)
items
=
models
.
ManyToManyField
(
Item
)
items
=
models
.
ManyToManyField
(
Item
)
request1
=
models
.
CharField
(
default
=
'request1'
,
max_length
=
1000
)
request1
=
models
.
CharField
(
default
=
'request1'
,
max_length
=
255
)
request2
=
models
.
CharField
(
default
=
'request2'
,
max_length
=
1000
)
request2
=
models
.
CharField
(
default
=
'request2'
,
max_length
=
255
)
request3
=
models
.
CharField
(
default
=
'request3'
,
max_length
=
1000
)
request3
=
models
.
CharField
(
default
=
'request3'
,
max_length
=
255
)
request4
=
models
.
CharField
(
default
=
'request4'
,
max_length
=
1000
)
request4
=
models
.
CharField
(
default
=
'request4'
,
max_length
=
255
)
class
Base
(
models
.
Model
):
class
Base
(
models
.
Model
):
...
...
tests/foreign_object/models/article.py
Dosyayı görüntüle @
d611a892
...
@@ -83,7 +83,7 @@ class ArticleTranslation(models.Model):
...
@@ -83,7 +83,7 @@ class ArticleTranslation(models.Model):
lang
=
models
.
CharField
(
max_length
=
2
)
lang
=
models
.
CharField
(
max_length
=
2
)
title
=
models
.
CharField
(
max_length
=
100
)
title
=
models
.
CharField
(
max_length
=
100
)
body
=
models
.
TextField
()
body
=
models
.
TextField
()
abstract
=
models
.
CharField
(
max_length
=
400
,
null
=
True
)
abstract
=
models
.
TextField
(
null
=
True
)
class
Meta
:
class
Meta
:
unique_together
=
(
'article'
,
'lang'
)
unique_together
=
(
'article'
,
'lang'
)
...
...
tests/generic_views/models.py
Dosyayı görüntüle @
d611a892
...
@@ -39,7 +39,7 @@ DoesNotExistBookManager = BaseManager.from_queryset(DoesNotExistQuerySet)
...
@@ -39,7 +39,7 @@ DoesNotExistBookManager = BaseManager.from_queryset(DoesNotExistQuerySet)
class
Book
(
models
.
Model
):
class
Book
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
300
)
name
=
models
.
CharField
(
max_length
=
255
)
slug
=
models
.
SlugField
()
slug
=
models
.
SlugField
()
pages
=
models
.
IntegerField
()
pages
=
models
.
IntegerField
()
authors
=
models
.
ManyToManyField
(
Author
)
authors
=
models
.
ManyToManyField
(
Author
)
...
@@ -57,7 +57,7 @@ class Book(models.Model):
...
@@ -57,7 +57,7 @@ class Book(models.Model):
class
Page
(
models
.
Model
):
class
Page
(
models
.
Model
):
content
=
models
.
TextField
()
content
=
models
.
TextField
()
template
=
models
.
CharField
(
max_length
=
300
)
template
=
models
.
CharField
(
max_length
=
255
)
class
BookSigning
(
models
.
Model
):
class
BookSigning
(
models
.
Model
):
...
...
tests/get_or_create/models.py
Dosyayı görüntüle @
d611a892
...
@@ -29,7 +29,7 @@ class Tag(models.Model):
...
@@ -29,7 +29,7 @@ class Tag(models.Model):
class
Thing
(
models
.
Model
):
class
Thing
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
25
6
)
name
=
models
.
CharField
(
max_length
=
25
5
)
tags
=
models
.
ManyToManyField
(
Tag
)
tags
=
models
.
ManyToManyField
(
Tag
)
...
...
tests/model_fields/models.py
Dosyayı görüntüle @
d611a892
...
@@ -74,7 +74,7 @@ class WhizIterEmpty(models.Model):
...
@@ -74,7 +74,7 @@ class WhizIterEmpty(models.Model):
class
BigD
(
models
.
Model
):
class
BigD
(
models
.
Model
):
d
=
models
.
DecimalField
(
max_digits
=
3
8
,
decimal_places
=
30
)
d
=
models
.
DecimalField
(
max_digits
=
3
2
,
decimal_places
=
30
)
class
FloatModel
(
models
.
Model
):
class
FloatModel
(
models
.
Model
):
...
...
tests/model_inheritance_regress/models.py
Dosyayı görüntüle @
d611a892
...
@@ -193,7 +193,7 @@ class MessyBachelorParty(BachelorParty):
...
@@ -193,7 +193,7 @@ class MessyBachelorParty(BachelorParty):
# Check concrete -> abstract -> concrete inheritance
# Check concrete -> abstract -> concrete inheritance
class
SearchableLocation
(
models
.
Model
):
class
SearchableLocation
(
models
.
Model
):
keywords
=
models
.
CharField
(
max_length
=
25
6
)
keywords
=
models
.
CharField
(
max_length
=
25
5
)
class
Station
(
SearchableLocation
):
class
Station
(
SearchableLocation
):
...
...
tests/servers/models.py
Dosyayı görüntüle @
d611a892
...
@@ -2,4 +2,4 @@ from django.db import models
...
@@ -2,4 +2,4 @@ from django.db import models
class
Person
(
models
.
Model
):
class
Person
(
models
.
Model
):
name
=
models
.
CharField
(
max_length
=
25
6
)
name
=
models
.
CharField
(
max_length
=
25
5
)
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