mirror of
https://github.com/pretix/pretix.git
synced 2026-08-24 13:02:00 +00:00
Added ADMINS setting
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
import logging
|
||||
from django.conf import settings
|
||||
|
||||
|
||||
class AdminExistsFilter(logging.Filter):
|
||||
def filter(self, record):
|
||||
return not settings.DEBUG and len(settings.ADMINS) > 0
|
||||
Reference in New Issue
Block a user