Skip to content

Commit

Permalink
chore: Rename deprecated settings to make it more explicilty internal
Browse files Browse the repository at this point in the history
  • Loading branch information
abhiabhi94 committed Jul 7, 2021
1 parent 1f2c833 commit 71bc3ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hitcount/conf/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def _setup(self):
self._wrapped = Settings(app_settings, django_settings)


DEPRECATED_SETTINGS = {
_DEPRECATED_DJANGO_SETTINGS = {
'USE_TZ' if django.VERSION > (4, 0) else None,
'PASSWORD_RESET_TIMEOUT_DAYS' if django.VERSION > (3, 0) else None,
'DEFAULT_CONTENT_TYPE' if django.VERSION > (2, 2) else None,
Expand All @@ -24,7 +24,7 @@ def __init__(self, *args):
setattr(self, attr, getattr(item, attr))
for item in args
for attr in dir(item)
if attr == attr.upper() and attr.upper() not in DEPRECATED_SETTINGS
if attr == attr.upper() and attr.upper() not in _DEPRECATED_DJANGO_SETTINGS
]


Expand Down

0 comments on commit 71bc3ef

Please sign in to comment.