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
ef392387
Kaydet (Commit)
ef392387
authored
Tem 05, 2014
tarafından
Daniel Hahler
Kaydeden (comit)
Tim Graham
Tem 06, 2014
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
[1.7.x] Fixed various minor doc typos / references.
Backport of
67f9f385
from master
üst
50ebddad
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
9 deletions
+9
-9
options.py
django/contrib/admin/options.py
+5
-5
inspectdb.py
django/core/management/commands/inspectdb.py
+1
-1
related.py
django/db/models/fields/related.py
+1
-1
models.py
django/forms/models.py
+1
-1
custom-model-fields.txt
docs/howto/custom-model-fields.txt
+1
-1
No files found.
django/contrib/admin/options.py
Dosyayı görüntüle @
ef392387
...
@@ -1695,9 +1695,9 @@ class InlineModelAdmin(BaseModelAdmin):
...
@@ -1695,9 +1695,9 @@ class InlineModelAdmin(BaseModelAdmin):
"""
"""
Options for inline editing of ``model`` instances.
Options for inline editing of ``model`` instances.
Provide ``
name`` to specify the attribute name of the ``ForeignKey`` from
Provide ``
fk_name`` to specify the attribute name of the ``ForeignKey``
``model`` to its parent. This is required if ``model`` has more than one
from ``model`` to its parent. This is required if ``model`` has more than
``ForeignKey`` to its parent.
one
``ForeignKey`` to its parent.
"""
"""
model
=
None
model
=
None
fk_name
=
None
fk_name
=
None
...
@@ -1759,8 +1759,8 @@ class InlineModelAdmin(BaseModelAdmin):
...
@@ -1759,8 +1759,8 @@ class InlineModelAdmin(BaseModelAdmin):
# Take the custom ModelForm's Meta.exclude into account only if the
# Take the custom ModelForm's Meta.exclude into account only if the
# InlineModelAdmin doesn't define its own.
# InlineModelAdmin doesn't define its own.
exclude
.
extend
(
self
.
form
.
_meta
.
exclude
)
exclude
.
extend
(
self
.
form
.
_meta
.
exclude
)
#
i
f exclude is an empty list we use None, since that's the actual
#
I
f exclude is an empty list we use None, since that's the actual
# default
# default
.
exclude
=
exclude
or
None
exclude
=
exclude
or
None
can_delete
=
self
.
can_delete
and
self
.
has_delete_permission
(
request
,
obj
)
can_delete
=
self
.
can_delete
and
self
.
has_delete_permission
(
request
,
obj
)
defaults
=
{
defaults
=
{
...
...
django/core/management/commands/inspectdb.py
Dosyayı görüntüle @
ef392387
...
@@ -211,7 +211,7 @@ class Command(NoArgsCommand):
...
@@ -211,7 +211,7 @@ class Command(NoArgsCommand):
field_type
=
'TextField'
field_type
=
'TextField'
field_notes
.
append
(
'This field type is a guess.'
)
field_notes
.
append
(
'This field type is a guess.'
)
# This is a hook for
DATA_TYPES_REVERSE
to return a tuple of
# This is a hook for
data_types_reverse
to return a tuple of
# (field_type, field_params_dict).
# (field_type, field_params_dict).
if
type
(
field_type
)
is
tuple
:
if
type
(
field_type
)
is
tuple
:
field_type
,
new_params
=
field_type
field_type
,
new_params
=
field_type
...
...
django/db/models/fields/related.py
Dosyayı görüntüle @
ef392387
...
@@ -2120,7 +2120,7 @@ class ManyToManyField(RelatedField):
...
@@ -2120,7 +2120,7 @@ class ManyToManyField(RelatedField):
def
_get_path_info
(
self
,
direct
=
False
):
def
_get_path_info
(
self
,
direct
=
False
):
"""
"""
Called by both direct an indirect m2m traversal.
Called by both direct an
d
indirect m2m traversal.
"""
"""
pathinfos
=
[]
pathinfos
=
[]
int_model
=
self
.
rel
.
through
int_model
=
self
.
rel
.
through
...
...
django/forms/models.py
Dosyayı görüntüle @
ef392387
...
@@ -931,7 +931,7 @@ def _get_foreign_key(parent_model, model, fk_name=None, can_fail=False):
...
@@ -931,7 +931,7 @@ def _get_foreign_key(parent_model, model, fk_name=None, can_fail=False):
"""
"""
Finds and returns the ForeignKey from model to parent if there is one
Finds and returns the ForeignKey from model to parent if there is one
(returns None if can_fail is True and no such field exists). If fk_name is
(returns None if can_fail is True and no such field exists). If fk_name is
provided, assume it is the name of the ForeignKey field. Unles can_fail is
provided, assume it is the name of the ForeignKey field. Unles
s
can_fail is
True, an exception is raised if there is no ForeignKey from model to
True, an exception is raised if there is no ForeignKey from model to
parent_model.
parent_model.
"""
"""
...
...
docs/howto/custom-model-fields.txt
Dosyayı görüntüle @
ef392387
...
@@ -795,7 +795,7 @@ storing a string.
...
@@ -795,7 +795,7 @@ storing a string.
If :meth:`.get_internal_type` returns a string that is not known to Django for
If :meth:`.get_internal_type` returns a string that is not known to Django for
the database backend you are using -- that is, it doesn't appear in
the database backend you are using -- that is, it doesn't appear in
``django.db.backends.<db_name>.creation.
DATA_TYPES
`` -- the string will still be
``django.db.backends.<db_name>.creation.
data_types
`` -- the string will still be
used by the serializer, but the default :meth:`.db_type` method will return
used by the serializer, but the default :meth:`.db_type` method will return
``None``. See the documentation of :meth:`.db_type` for reasons why this might be
``None``. See the documentation of :meth:`.db_type` for reasons why this might be
useful. Putting a descriptive string in as the type of the field for the
useful. Putting a descriptive string in as the type of the field for the
...
...
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