You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
681 B

from django.apps import AppConfig
from django.db.models.signals import post_delete
class AggregatorConfig(AppConfig):
name = 'aggregator'
def ready(self):
def register_config(self):
import djconfig
from .forms import AggregatorAppConfigForm
def register_signals(self):
from .models import AggregationSource, Chat
from .signals import aggregation_source_deleted, chat_deleted
post_delete.connect(aggregation_source_deleted, sender=AggregationSource)
post_delete.connect(chat_deleted, sender=Chat)