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
de4bfb3f
Kaydet (Commit)
de4bfb3f
authored
Ock 08, 2015
tarafından
Claude Paroz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Simplified verbose_name_raw property
üst
ade98599
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
options.py
django/db/models/options.py
+3
-6
No files found.
django/db/models/options.py
Dosyayı görüntüle @
de4bfb3f
...
...
@@ -18,7 +18,7 @@ from django.utils.encoding import force_text, smart_text, python_2_unicode_compa
from
django.utils.functional
import
cached_property
from
django.utils.lru_cache
import
lru_cache
from
django.utils.text
import
camel_case_to_spaces
from
django.utils.translation
import
activate
,
deactivate_all
,
get_languag
e
,
string_concat
from
django.utils.translation
import
overrid
e
,
string_concat
EMPTY_RELATION_TREE
=
tuple
()
...
...
@@ -339,11 +339,8 @@ class Options(object):
(so that we get the same value regardless of currently active
locale).
"""
lang
=
get_language
()
deactivate_all
()
raw
=
force_text
(
self
.
verbose_name
)
activate
(
lang
)
return
raw
with
override
(
None
):
return
force_text
(
self
.
verbose_name
)
@property
def
swapped
(
self
):
...
...
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