Change negated in to not in

This is a cosmetic thing that a linter found. Not important.

Signed-off-by: Radomir Dopieralski <openstack@dopieralski.pl>
Change-Id: Ifdffc5e60a0bab060149d49959a5fc1bc58e8d91
This commit is contained in:
Radomir Dopieralski
2025-10-29 12:20:13 +01:00
parent fc2de23a1b
commit 1230aec627

View File

@@ -124,7 +124,7 @@ class OperationLogMiddleware(object):
if not request.user.is_authenticated:
return
method = request.method.upper()
if not (method in self.target_methods):
if method not in self.target_methods:
return
for rule in self._ignored_urls:
if rule.search(request_url):