mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2026-10-30 19:45:44 +00:00
Fix: correctly handle empty user for old notes api format, fix frontend API version (#9846)
This commit is contained in:
1 parent
c83b0bfca6
commit
86adc377a0
3 files changed
+3
-3
No files matched your search
@@ -885,7 +885,7 @@ class NotesSerializer(serializers.ModelSerializer):
|
||||
request.version if request else settings.REST_FRAMEWORK["DEFAULT_VERSION"],
|
||||
)
|
||||
|
||||
if api_version < 8:
|
||||
if api_version < 8 and "user" in ret:
|
||||
user_id = ret["user"]["id"]
|
||||
ret["user"] = user_id
|
||||
|
||||
|
||||
Reference in new issue
Block a user