adapter: fix splitting of class name from module path
This commit is contained in:
parent
c39108bd4f
commit
3f57b38674
|
@ -4,7 +4,7 @@ from django.core.exceptions import ImproperlyConfigured
|
|||
from . import app_settings
|
||||
|
||||
def get_adapter():
|
||||
module, cls = app_settings.ADAPTER
|
||||
module, cls = app_settings.ADAPTER.rsplit('.', 1)
|
||||
try:
|
||||
module = import_module(module)
|
||||
cls = getattr(module, cls)
|
||||
|
|
Reference in New Issue