mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-08 06:08:12 +08:00
Replacing ugettext_ functions with gettext_ for Django 3
This commit is contained in:
+2
-2
@@ -4,7 +4,7 @@ from signal import signal
|
||||
from multiprocessing import cpu_count
|
||||
|
||||
# django
|
||||
from django.utils.translation import ugettext_lazy as _
|
||||
from django.utils.translation import gettext_lazy as _
|
||||
from django.conf import settings
|
||||
|
||||
# external
|
||||
@@ -77,7 +77,7 @@ class Conf(object):
|
||||
|
||||
# Guard loop sleep in seconds. Should be between 0 and 60 seconds.
|
||||
GUARD_CYCLE = conf.get('guard_cycle', 0.5)
|
||||
|
||||
|
||||
# Disable the scheduler
|
||||
SCHEDULER = conf.get('scheduler', True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user