Fixes resubmission handling
* resubmissions have not been deleted after sending mails
This commit is contained in:
		
							parent
							
								
									40df3a30d8
								
							
						
					
					
						commit
						7fda62cbf3
					
				@ -39,6 +39,9 @@ class Command(BaseKonovaCommand):
 | 
			
		||||
                for obj in all_objs:
 | 
			
		||||
                    obj.resubmit()
 | 
			
		||||
            self._write_success("Mails have been sent.")
 | 
			
		||||
            resubmissions = Resubmission.objects.filter(
 | 
			
		||||
                resubmission_sent=True,
 | 
			
		||||
            )
 | 
			
		||||
            resubmissions.delete()
 | 
			
		||||
            self._write_success("Resubmissions have been deleted.")
 | 
			
		||||
        except KeyboardInterrupt:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user