mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-02 13:45:10 -05:00
Merge pull request #1412 from paperless-ngx/fix/created-date-not-required
Fix: `created_date` should not be required
This commit is contained in:
commit
87953cb98a
@ -240,7 +240,8 @@ class DocumentSerializer(DynamicFieldsModelSerializer):
|
||||
)
|
||||
instance.created = new_datetime
|
||||
instance.save()
|
||||
validated_data.pop("created_date")
|
||||
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