mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-09 07:28:13 +08:00
docs: Adds Custom broker class documentation
Also changes some of the variable and settings names, to make them less ambiguous.
This commit is contained in:
@@ -159,8 +159,8 @@ def get_broker(list_key=Conf.PREFIX):
|
||||
:return:
|
||||
"""
|
||||
# custom
|
||||
if Conf.BROKER:
|
||||
module, func = Conf.BROKER.rsplit('.', 1)
|
||||
if Conf.BROKER_CLASS:
|
||||
module, func = Conf.BROKER_CLASS.rsplit('.', 1)
|
||||
m = importlib.import_module(module)
|
||||
broker = getattr(m, func)
|
||||
return broker(list_key=list)
|
||||
|
||||
Reference in New Issue
Block a user