Replace occurrences of "blacklist" with "banlist" (#1434)

* Rename blacklist to banlist

* Rename more cases of blacklist to banlist

* Rename Blacklist -> Banlist in migrations
This commit is contained in:
Sohalt
2019-10-15 14:58:48 +02:00
committed by Raphael Michel
parent a4d8c810ce
commit b870dde301
24 changed files with 51 additions and 51 deletions

View File

@@ -7,7 +7,7 @@ from django.conf import settings
class CProfileMiddleware(object):
blacklist = (
banlist = (
'/healthcheck/',
'/jsi18n/'
)
@@ -19,7 +19,7 @@ class CProfileMiddleware(object):
def __call__(self, request):
# Code to be executed for each request before
# the view (and later middleware) are called.
for b in self.blacklist:
for b in self.banlist:
if b in request.path:
return self.get_response(request)