mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Removed unnecessary check
This commit is contained in:
		
							parent
							
								
									3027053256
								
							
						
					
					
						commit
						060bdc947a
					
				@ -420,8 +420,6 @@ def update_filename(sender, instance, **kwargs):
 | 
				
			|||||||
    if instance.filename == new_filename:
 | 
					    if instance.filename == new_filename:
 | 
				
			||||||
        return
 | 
					        return
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    # Check if filename needs changing
 | 
					 | 
				
			||||||
    if new_filename != instance.filename:
 | 
					 | 
				
			||||||
    # Determine the full "target" path
 | 
					    # Determine the full "target" path
 | 
				
			||||||
    path_new = instance.filename_to_path(new_filename)
 | 
					    path_new = instance.filename_to_path(new_filename)
 | 
				
			||||||
    dir_new = instance.filename_to_path(os.path.dirname(new_filename))
 | 
					    dir_new = instance.filename_to_path(os.path.dirname(new_filename))
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user