mirror of
https://github.com/jazzband/django-configurations.git
synced 2026-03-16 22:20:27 +00:00
Minor style changes and bumping version.
This commit is contained in:
parent
cd2144492c
commit
1da2414ee1
3 changed files with 7 additions and 6 deletions
|
|
@ -2,5 +2,5 @@
|
|||
from .base import Settings, Configuration
|
||||
from .decorators import pristinemethod
|
||||
|
||||
__version__ = '0.3'
|
||||
__all__ = ['Configuration', 'pristinemethod']
|
||||
__version__ = '0.4'
|
||||
__all__ = ['Configuration', 'pristinemethod', 'Settings']
|
||||
|
|
|
|||
|
|
@ -19,9 +19,10 @@ install_failure = ("django-configurations settings importer wasn't "
|
|||
class ConfigurationBase(type):
|
||||
|
||||
def __new__(cls, name, bases, attrs):
|
||||
# also check for "Configuration" here to handle the Settings class below
|
||||
# remove it when we deprecate the Settings class
|
||||
if bases != (object,) and bases[0].__name__ not in ('NewBase', 'Configuration'):
|
||||
# also check for "Configuration" here to handle the Settings class
|
||||
# below remove it when we deprecate the Settings class
|
||||
if (bases != (object,) and
|
||||
bases[0].__name__ not in ('NewBase', 'Configuration')):
|
||||
# if this is actually a subclass in a settings module
|
||||
# we better check if the importer was correctly installed
|
||||
from . import importer
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
[metadata]
|
||||
name = django-configurations
|
||||
version = 0.4a1
|
||||
version = 0.4
|
||||
author = Jannis Leidel
|
||||
author-email = jannis@leidel.info
|
||||
summary = A helper for organizing Django settings.
|
||||
|
|
|
|||
Loading…
Reference in a new issue