Commits

Daniel Greenfeld committed 3275625

Fixing calls to the constants

  • Participants
  • Parent commits 8f80f11

Comments (0)

Files changed (1)

visitor/visitor_constants.py

 from django.conf import settings
 
-VISITOR_KEY = getattr(settings, VISITOR_KEY, 'visitor_key')
-COOKIE_SAVED = getattr(settings, COOKIE_SAVED, 'cookie_saved')
-COOKIE_VISITOR_KEY = getattr(settings, COOKIE_VISITOR_KEY, 'vk')
-REQUEST_LOG_ID = getattr(settings, REQUEST_LOG_ID, 'request_log_id')
+VISITOR_KEY = getattr(settings, 'VISITOR_KEY', 'visitor_key')
+COOKIE_SAVED = getattr(settings, 'COOKIE_SAVED', 'cookie_saved')
+COOKIE_VISITOR_KEY = getattr(settings, 'COOKIE_VISITOR_KEY', 'vk')
+REQUEST_LOG_ID = getattr(settings, 'REQUEST_LOG_ID', 'request_log_id')