mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 05:02:14 +01:00 
			
		
		
		
	Move apps in main directory
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		
							
								
								
									
										19
									
								
								participation/apps.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								participation/apps.py
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,19 @@
 | 
			
		||||
# Copyright (C) 2020 by Animath
 | 
			
		||||
# SPDX-License-Identifier: GPL-3.0-or-later
 | 
			
		||||
 | 
			
		||||
from django.apps import AppConfig
 | 
			
		||||
from django.db.models.signals import post_save, pre_save
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class ParticipationConfig(AppConfig):
 | 
			
		||||
    """
 | 
			
		||||
    The participation app contains the data about the teams, solutions, ...
 | 
			
		||||
    """
 | 
			
		||||
    name = 'participation'
 | 
			
		||||
 | 
			
		||||
    def ready(self):
 | 
			
		||||
        from participation.signals import create_notes, create_team_participation, update_mailing_list
 | 
			
		||||
        pre_save.connect(update_mailing_list, "participation.Team")
 | 
			
		||||
        post_save.connect(create_team_participation, "participation.Team")
 | 
			
		||||
        post_save.connect(create_notes, "participation.Passage")
 | 
			
		||||
        post_save.connect(create_notes, "participation.Pool")
 | 
			
		||||
		Reference in New Issue
	
	Block a user