Commits

Jeffrey Gelens committed 0679aec

Condition fixed

  • Participants
  • Parent commits f49a746

Comments (0)

Files changed (1)

admin_tools/utils.py

     Returns the django admin tools media URL.
     """
     media_url = getattr(settings, 'ADMIN_TOOLS_MEDIA_URL', None)
-    if media_url == None:
+    if media_url is None:
         media_url = getattr(settings, 'STATIC_URL', None)
-    if media_url == None:
+    if media_url is None:
         media_url = getattr(settings, 'MEDIA_URL')
     return media_url.rstrip('/')