mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-10-30 03:56:23 -05:00 
			
		
		
		
	Removed unnecessary check
This commit is contained in:
		| @@ -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)) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Wolf-Bastian Poettner
					Wolf-Bastian Poettner