chore: remove unused update_log_for_doc_creation flag

* chore: add note/warning for log_types
This commit is contained in:
phot0n 2022-08-26 17:35:48 +05:30
parent 41f96c7b01
commit bca63f8e46
2 changed files with 2 additions and 3 deletions

View file

@ -114,6 +114,8 @@ core_doctypes_list = (
"Client Script",
)
# NOTE: this is being used for dynamic autoincrement in new sites,
# removing any of these will require patches.
log_types = (
"Version",
"Error Log",

View file

@ -275,9 +275,6 @@ class Document(BaseDocument):
if self.get("amended_from"):
self.copy_attachments_from_amended_from()
# flag to prevent creation of event update log for create and update both
# during document creation
self.flags.update_log_for_doc_creation = True
self.run_post_save_methods()
self.flags.in_insert = False