From 088223e87b3881433848036d12a6c2670bbe2fa8 Mon Sep 17 00:00:00 2001 From: Jannis Leidel Date: Fri, 20 Sep 2013 19:11:30 +0200 Subject: [PATCH] Made 0.3.x work with old six. This is a backport of 46809d02b2f94a4e0dafac36b621edc54d733cc2 and closes #37. Thanks to @mei-li for the report. --- configurations/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configurations/base.py b/configurations/base.py index aa7deff..6c47db9 100644 --- a/configurations/base.py +++ b/configurations/base.py @@ -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