diff --git a/djangoql/admin.py b/djangoql/admin.py
index <HASH>..<HASH> 100644
--- a/djangoql/admin.py
+++ b/djangoql/admin.py
@@ -23,10 +23,10 @@ except ImportError:  # Django 2.0
     from django.urls import reverse
 
 try:
-    from django.conf.urls import re_path
+    from django.urls import re_path  # Django >= 4.0
 except ImportError:
-    try:  # Django >= 4.0
-        from django.urls import re_path
+    try:
+        from django.conf.urls import re_path  # Django < 4.0
     except ImportError:  # Django < 2.0
         from django.conf.urls import url as re_path
prioritize the latest Django version in imports order