mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 08:22:10 +01:00 
			
		
		
		
	Teams must send their motivation letter
This commit is contained in:
		@@ -343,6 +343,7 @@ class TestRegistration(TestCase):
 | 
			
		||||
 | 
			
		||||
        self.student.registration.refresh_from_db()
 | 
			
		||||
        self.student.registration.photo_authorization.delete()
 | 
			
		||||
        self.student.registration.save()
 | 
			
		||||
 | 
			
		||||
    def test_user_detail_forbidden(self):
 | 
			
		||||
        """
 | 
			
		||||
 
 | 
			
		||||
@@ -329,6 +329,7 @@ class UserUploadPhotoAuthorizationView(UserMixin, UpdateView):
 | 
			
		||||
        old_instance = StudentRegistration.objects.get(pk=self.object.pk)
 | 
			
		||||
        if old_instance.photo_authorization:
 | 
			
		||||
            old_instance.photo_authorization.delete()
 | 
			
		||||
            old_instance.save()
 | 
			
		||||
        return super().form_valid(form)
 | 
			
		||||
 | 
			
		||||
    def get_success_url(self):
 | 
			
		||||
@@ -355,6 +356,7 @@ class UserUploadHealthSheetView(UserMixin, UpdateView):
 | 
			
		||||
        old_instance = StudentRegistration.objects.get(pk=self.object.pk)
 | 
			
		||||
        if old_instance.health_sheet:
 | 
			
		||||
            old_instance.health_sheet.delete()
 | 
			
		||||
            old_instance.save()
 | 
			
		||||
        return super().form_valid(form)
 | 
			
		||||
 | 
			
		||||
    def get_success_url(self):
 | 
			
		||||
@@ -381,6 +383,7 @@ class UserUploadParentalAuthorizationView(UserMixin, UpdateView):
 | 
			
		||||
        old_instance = StudentRegistration.objects.get(pk=self.object.pk)
 | 
			
		||||
        if old_instance.parental_authorization:
 | 
			
		||||
            old_instance.parental_authorization.delete()
 | 
			
		||||
            old_instance.save()
 | 
			
		||||
        return super().form_valid(form)
 | 
			
		||||
 | 
			
		||||
    def get_success_url(self):
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user