diff --git a/src/documents/serialisers.py b/src/documents/serialisers.py index 4858cfe05..01e49ea8f 100644 --- a/src/documents/serialisers.py +++ b/src/documents/serialisers.py @@ -835,7 +835,7 @@ class StoragePathSerializer(MatchingModelSerializer, OwnedObjectSerializer): tag_list="tag_list", owner_username="someone", original_name="testfile", - dock_pk="doc_pk", + doc_pk="doc_pk", ) except KeyError as err: diff --git a/src/documents/tests/test_api.py b/src/documents/tests/test_api.py index d6bdb593a..1b056b34f 100644 --- a/src/documents/tests/test_api.py +++ b/src/documents/tests/test_api.py @@ -4463,7 +4463,7 @@ class TestApiStoragePaths(DirectoriesMixin, APITestCase): "/{created_month_name_short}/{created_day}/{added}/{added_year}" "/{added_year_short}/{added_month}/{added_month_name}" "/{added_month_name_short}/{added_day}/{asn}/{tags}" - "/{tag_list}/{owner_username}/{original_name}/{dock_pk}/", + "/{tag_list}/{owner_username}/{original_name}/{doc_pk}/", }, ), content_type="application/json",