mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
created_date
is not supposed to be required
This commit is contained in:
parent
9e9593b899
commit
8183de4902
@ -240,6 +240,7 @@ class DocumentSerializer(DynamicFieldsModelSerializer):
|
||||
)
|
||||
instance.created = new_datetime
|
||||
instance.save()
|
||||
if "created_date" in validated_data:
|
||||
validated_data.pop("created_date")
|
||||
super().update(instance, validated_data)
|
||||
return instance
|
||||
|
Loading…
x
Reference in New Issue
Block a user