mirror of https://github.com/doccano/doccano.git
pythonannotation-tooldatasetsactive-learningtext-annotationdatasetnatural-language-processingdata-labelingmachine-learning
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.
18 lines
580 B
18 lines
580 B
import importlib
|
|
|
|
from django.apps import AppConfig
|
|
from django.db.models.signals import post_save
|
|
|
|
|
|
class MembersConfig(AppConfig):
|
|
default_auto_field = 'django.db.models.BigAutoField'
|
|
name = 'members'
|
|
|
|
def ready(self):
|
|
importlib.import_module('members.signals')
|
|
from api.models import Project
|
|
from .signals import add_administrator_on_project_creation
|
|
|
|
# Registering signals with the subclasses of project.
|
|
for project in Project.__subclasses__():
|
|
post_save.connect(add_administrator_on_project_creation, project)
|