mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-09-16 21:55:37 -05:00
Use json str, normalize keys
This commit is contained in:
@@ -1758,6 +1758,8 @@ class PostDocumentSerializer(serializers.Serializer):
|
||||
"value": value,
|
||||
},
|
||||
)
|
||||
# Normalize keys to integers for later
|
||||
return {int(k): v for k, v in custom_fields_w_values.items()}
|
||||
|
||||
def validate_created(self, created):
|
||||
# support datetime format for created for backwards compatibility
|
||||
|
Reference in New Issue
Block a user