Skip to content

Commit 6ffff6f

Browse files
committed
Fix WEB_HOOK_OWNER_LOCAL setting
1 parent c95752c commit 6ffff6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

webhook/models.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
if hasattr(settings, 'WEB_HOOK_ACTIONS'):
2020
WEB_HOOK_ACTIONS = settings.WEB_HOOK_ACTIONS
2121

22+
if hasattr(settings, 'WEB_HOOK_OWNER_LOCAL'):
23+
WEB_HOOK_OWNER_LOCAL = settings.WEB_HOOK_OWNER_LOCAL
24+
2225
# Work out our dynamic relation
2326
app_name = WEB_HOOK_OWNER_MODEL.rsplit('.', 1)[0]
2427
model_name = WEB_HOOK_OWNER_MODEL.rsplit('.', 1)[1]

0 commit comments

Comments
 (0)