Fix relative import in signals causing broadcast failures
Changed relative import to absolute import in signals.py to prevent "No module named 'schedule'" errors when broadcasting WebSocket events from management commands. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -45,7 +45,7 @@ def broadcast_event_change_sync(event, update_type, changed_fields=None, old_sta
|
||||
return
|
||||
|
||||
try:
|
||||
from .consumers import broadcast_event_update
|
||||
from smoothschedule.scheduling.schedule.consumers import broadcast_event_update
|
||||
async_to_sync(broadcast_event_update)(
|
||||
event,
|
||||
update_type=update_type,
|
||||
|
||||
Reference in New Issue
Block a user