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
61087666
Kaydet (Commit)
61087666
authored
Şub 21, 2017
tarafından
Anton Samarchyan
Kaydeden (comit)
Tim Graham
Şub 22, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed typos in code comments.
üst
46e51632
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
static.py
django/conf/urls/static.py
+1
-1
actions.py
django/contrib/admin/actions.py
+1
-1
No files found.
django/conf/urls/static.py
Dosyayı görüntüle @
61087666
...
...
@@ -17,10 +17,10 @@ def static(prefix, view=serve, **kwargs):
# ... the rest of your URLconf goes here ...
] + static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
"""
# No-op if not in debug mode or an non-local prefix
if
not
prefix
:
raise
ImproperlyConfigured
(
"Empty static prefix not permitted"
)
elif
not
settings
.
DEBUG
or
'://'
in
prefix
:
# No-op if not in debug mode or a non-local prefix.
return
[]
return
[
url
(
r'^
%
s(?P<path>.*)$'
%
re
.
escape
(
prefix
.
lstrip
(
'/'
)),
view
,
kwargs
=
kwargs
),
...
...
django/contrib/admin/actions.py
Dosyayı görüntüle @
61087666
...
...
@@ -37,7 +37,7 @@ def delete_selected(modeladmin, request, queryset):
queryset
,
opts
,
request
.
user
,
modeladmin
.
admin_site
,
using
)
# The user has already confirmed the deletion.
# Do the deletion and return
a
None to display the change list view again.
# Do the deletion and return None to display the change list view again.
if
request
.
POST
.
get
(
'post'
)
and
not
protected
:
if
perms_needed
:
raise
PermissionDenied
...
...
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