mirror of
				https://github.com/paperless-ngx/paperless-ngx.git
				synced 2025-11-03 19:17:13 -05:00 
			
		
		
		
	Fix: support doc_pk storage path placeholder (#4179)
				
					
				
			This commit is contained in:
		
							parent
							
								
									1a87c730bc
								
							
						
					
					
						commit
						d1292c59ea
					
				@ -835,6 +835,7 @@ class StoragePathSerializer(MatchingModelSerializer, OwnedObjectSerializer):
 | 
				
			|||||||
                tag_list="tag_list",
 | 
					                tag_list="tag_list",
 | 
				
			||||||
                owner_username="someone",
 | 
					                owner_username="someone",
 | 
				
			||||||
                original_name="testfile",
 | 
					                original_name="testfile",
 | 
				
			||||||
 | 
					                dock_pk="doc_pk",
 | 
				
			||||||
            )
 | 
					            )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        except KeyError as err:
 | 
					        except KeyError as err:
 | 
				
			||||||
 | 
				
			|||||||
@ -4463,7 +4463,7 @@ class TestApiStoragePaths(DirectoriesMixin, APITestCase):
 | 
				
			|||||||
                    "/{created_month_name_short}/{created_day}/{added}/{added_year}"
 | 
					                    "/{created_month_name_short}/{created_day}/{added}/{added_year}"
 | 
				
			||||||
                    "/{added_year_short}/{added_month}/{added_month_name}"
 | 
					                    "/{added_year_short}/{added_month}/{added_month_name}"
 | 
				
			||||||
                    "/{added_month_name_short}/{added_day}/{asn}/{tags}"
 | 
					                    "/{added_month_name_short}/{added_day}/{asn}/{tags}"
 | 
				
			||||||
                    "/{tag_list}/",
 | 
					                    "/{tag_list}/{owner_username}/{original_name}/{dock_pk}/",
 | 
				
			||||||
                },
 | 
					                },
 | 
				
			||||||
            ),
 | 
					            ),
 | 
				
			||||||
            content_type="application/json",
 | 
					            content_type="application/json",
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user