diff --git a/src/documents/views.py b/src/documents/views.py index dfde03d79..c398f1f9e 100644 --- a/src/documents/views.py +++ b/src/documents/views.py @@ -524,8 +524,8 @@ class DocumentViewSet( # Cache the suggestions and the classifier hash for later if classifier is not None: cache.set( - (doc_key, classifier.last_auto_type_hash.decode()), - resp_data, + doc_key, + (classifier.last_auto_type_hash.decode(), resp_data), CACHE_5_MINUTES, )