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.created = new_datetime
|
||||||
instance.save()
|
instance.save()
|
||||||
|
if "created_date" in validated_data:
|
||||||
validated_data.pop("created_date")
|
validated_data.pop("created_date")
|
||||||
super().update(instance, validated_data)
|
super().update(instance, validated_data)
|
||||||
return instance
|
return instance
|
||||||
|
Loading…
x
Reference in New Issue
Block a user