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
8d873503
Kaydet (Commit)
8d873503
authored
Eyl 26, 2018
tarafından
Jon Dufresne
Kaydeden (comit)
Tim Graham
Eyl 26, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Refs #27795 -- Removed force_bytes() usage in contrib/auth/handlers/modwsgi.py.
üst
90d93a1b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
modwsgi.py
django/contrib/auth/handlers/modwsgi.py
+1
-2
No files found.
django/contrib/auth/handlers/modwsgi.py
Dosyayı görüntüle @
8d873503
from
django
import
db
from
django.contrib
import
auth
from
django.utils.encoding
import
force_bytes
UserModel
=
auth
.
get_user_model
()
...
...
@@ -39,6 +38,6 @@ def groups_for_user(environ, username):
return
[]
if
not
user
.
is_active
:
return
[]
return
[
force_bytes
(
group
.
name
)
for
group
in
user
.
groups
.
all
()]
return
[
group
.
name
.
encode
(
)
for
group
in
user
.
groups
.
all
()]
finally
:
db
.
close_old_connections
()
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