diff --git a/netbox/netbox/settings.py b/netbox/netbox/settings.py index 5699962b5..c88e9d05e 100644 --- a/netbox/netbox/settings.py +++ b/netbox/netbox/settings.py @@ -119,7 +119,7 @@ DATABASES = { # if MEDIA_STORAGE: - if not 'BACKEND' in MEDIA_STORAGE: + if 'BACKEND' not in MEDIA_STORAGE: raise ImproperlyConfigured( "Required parameter BACKEND is missing from MEDIA_STORAGE in configuration.py." )