mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-05-26 16:04:06 +00:00
Made 0.3.x work with old six.
This is a backport of 46809d02b2 and
closes #37. Thanks to @mei-li for the report.
This commit is contained in:
parent
822397799b
commit
088223e87b
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ install_failure = ("django-configurations settings importer wasn't "
|
|||
class SettingsBase(type):
|
||||
|
||||
def __new__(cls, name, bases, attrs):
|
||||
if bases != (object,) and bases[0].__name__ != 'NewBase':
|
||||
if bases not in ((object,), ()) and bases[0].__name__ != 'NewBase':
|
||||
# if this is actually a subclass in a settings module
|
||||
# we better check if the importer was correctly installed
|
||||
from . import importer
|
||||
|
|
|
|||
Loading…
Reference in a new issue