Skip to content

Commit 2e46771

Browse files
authored
Dev Delete Settings Var Type check (#10)
* fix: version * del: check settings type
1 parent 5ef021d commit 2e46771

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

django_event_observer/apps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class DjangoEventObserverConfig(AppConfig):
1919
@property
2020
def app_settings(self):
2121
result = default_config.DJANGO_EVENT_OBSERVER.copy()
22-
if isinstance(getattr(settings, "DJANGO_EVENT_OBSERVER", None), dict):
22+
if getattr(settings, "DJANGO_EVENT_OBSERVER", None) is not None:
2323
result.update(settings.DJANGO_EVENT_OBSERVER)
2424
return result
2525

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = ["setuptools", "wheel"]
44

55
[project]
66
name = "django_event_observer"
7-
version = "2024.11.6-1"
7+
version = "2024.11.8"
88
requires-python = ">=3.8"
99
description = ""
1010
readme = "README.md"

0 commit comments

Comments
 (0)