mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 09:02:11 +01:00 
			
		
		
		
	Coaches have no health sheet
This commit is contained in:
		@@ -391,7 +391,7 @@ class TeamAuthorizationsView(LoginRequiredMixin, DetailView):
 | 
				
			|||||||
                         _("Parental authorization of {participant}.{ext}")
 | 
					                         _("Parental authorization of {participant}.{ext}")
 | 
				
			||||||
                         .format(participant=str(participant), ext=ext))
 | 
					                         .format(participant=str(participant), ext=ext))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            if participant.health_sheet:
 | 
					            if isinstance(participant, StudentRegistration) and participant.health_sheet:
 | 
				
			||||||
                mime_type = magic.from_file("media/" + participant.health_sheet.name)
 | 
					                mime_type = magic.from_file("media/" + participant.health_sheet.name)
 | 
				
			||||||
                ext = mime_type.split("/")[1].replace("jpeg", "jpg")
 | 
					                ext = mime_type.split("/")[1].replace("jpeg", "jpg")
 | 
				
			||||||
                zf.write("media/" + participant.health_sheet.name,
 | 
					                zf.write("media/" + participant.health_sheet.name,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user