mirror of
				https://github.com/ae-utbm/sith.git
				synced 2025-11-04 02:53:06 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			10 lines
		
	
	
		
			273 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			10 lines
		
	
	
		
			273 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from django.db.models.base import post_save
 | 
						|
from django.dispatch import receiver
 | 
						|
 | 
						|
from com.models import IcsCalendar, News
 | 
						|
 | 
						|
 | 
						|
@receiver(post_save, sender=News, dispatch_uid="update_internal_ics")
 | 
						|
def update_internal_ics(*args, **kwargs):
 | 
						|
    _ = IcsCalendar.make_internal()
 |