Commits

Branko Vukelic  committed 4a4a594

Added HEAP_AUTO_ID_USER setting

  • Participants
  • Parent commits 73e8c74

Comments (0)

Files changed (2)

File heap/context_processors.py

     is_super = request.user.is_authenticated() and request.user.is_superuser
     return dict(
         HEAP_APP_ID=settings.HEAP_APP_ID,
-        HEAP_USER_UNTRACKABLE=(not settings.HEAP_TRACK_SUPERUSER) and is_super
+        HEAP_USER_UNTRACKABLE=(not settings.HEAP_TRACK_SUPERUSER) and is_super,
+        HEAP_AUTO_ID_USER=settings.HEAP_AUTO_ID_USER
     )

File heap/settings.py

 
 HEAP_APP_ID = getattr(settings, 'HEAP_APP_ID')
 HEAP_TRACK_SUPERUSER = getattr(settings, 'HEAP_TRACK_SUPERUSER', True)
+HEAP_AUTO_ID_USER = getattr(settings, 'HEAP_AUTO_ID_USER', False)