24 lines
694 B
Python
24 lines
694 B
Python
"""
|
|
PX Sources signals
|
|
|
|
This module defines signals for the PX Sources app.
|
|
Currently, this is a placeholder for future signal implementations.
|
|
"""
|
|
from django.db.models.signals import post_save, post_delete
|
|
from django.dispatch import receiver
|
|
|
|
|
|
# Placeholder for future signal implementations
|
|
# Example signals could include:
|
|
# - Logging when a source is created/updated/deleted
|
|
# - Invalidating caches when sources change
|
|
# - Sending notifications when sources are deactivated
|
|
|
|
|
|
@receiver(post_save)
|
|
def log_source_activity(sender, instance, created, **kwargs):
|
|
"""
|
|
Log source activity for audit purposes.
|
|
This signal is handled in the views.py via AuditService.
|
|
"""
|
|
pass |