From feff56d92eaacb5459f60364e55c4335301d46df Mon Sep 17 00:00:00 2001
From: autodeploy <benoit@startinblox.com>
Date: Tue, 2 Jul 2024 18:06:55 +0200
Subject: [PATCH] fix: bad var init

---
 djangoldp/filters.py | 1 -
 djangoldp/utils.py   | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

diff --git a/djangoldp/filters.py b/djangoldp/filters.py
index 2c93699..c1da410 100644
--- a/djangoldp/filters.py
+++ b/djangoldp/filters.py
@@ -3,7 +3,6 @@ from django.db.models import Q
 from rest_framework.filters import BaseFilterBackend
 from djangoldp.utils import check_client_ip
 
-PASSTHROUGH_IPS = getattr(settings, 'PASSTHROUGH_IPS', '')
 
 class OwnerFilterBackend(BaseFilterBackend):
     """Adds the objects owned by the user"""
diff --git a/djangoldp/utils.py b/djangoldp/utils.py
index 4413252..d3b2238 100644
--- a/djangoldp/utils.py
+++ b/djangoldp/utils.py
@@ -1,6 +1,7 @@
 from django.conf import settings
 from guardian.utils import get_anonymous_user
 
+PASSTHROUGH_IPS = getattr(settings, 'PASSTHROUGH_IPS', '')
 
 # convenience function returns True if user is anonymous
 def is_anonymous_user(user):
-- 
GitLab