mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 09:12:11 +01:00 
			
		
		
		
	Fix membership tables for clubs without an ending membership date
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
		@@ -258,7 +258,7 @@ class Club(models.Model):
 | 
			
		||||
        This function is called each time the club detail view is displayed.
 | 
			
		||||
        Update the year of the membership dates.
 | 
			
		||||
        """
 | 
			
		||||
        if not self.membership_start:
 | 
			
		||||
        if not self.membership_start or not self.membership_end:
 | 
			
		||||
            return
 | 
			
		||||
 | 
			
		||||
        today = datetime.date.today()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user