# Copyright (c) 2020, JINGROW
# License: MIT. See LICENSE

import jingrow
from jingrow.model.page import Page


class ConsoleLog(Page):
	# begin: auto-generated types
	# This code is auto-generated. Do not modify anything in this block.

	from typing import TYPE_CHECKING

	if TYPE_CHECKING:
		from jingrow.types import DF

		committed: DF.Check
		script: DF.Code | None
		type: DF.Data | None
	# end: auto-generated types

	def after_delete(self):
		# because on_trash can be bypassed
		jingrow.throw(jingrow._("Console Logs can not be deleted"))
