NoteTemplateFormTemplateModel
Join row mirroring FORM_TEMPLATE rich-text blocks embedded in a
NoteTemplate.
Source of truth is the rich-text block payload; this row is a queryable projection reconciled by the form module's NoteTemplateContentUpdatedEvent listener whenever note-template content changes. See spec §3.6.
Joins on FormTemplateVersion (the pinned version) so we can answer
"is anyone still pinning this exact archived version?". The denormalized
form_template column lets queries skip the join through the version
when the family-level question suffices.
form_template: FormTemplateform_template_id: strform_template_version: FormTemplateVersionform_template_version_id: strnote_template: NoteTemplateInitialize self. See help(type(self)) for accurate signature.
bool - Truebool - Falsebool - Falsebool - Truebool - FalseBaseModelAnyMethod call after all the table are inited
Useful when use DeferredForeignKey to create the foreign key manually latter
Method call after the table is created
Usefull to create the full text indexes
AnyAnybool - Truebool - TrueAnyAnybool - Truebool - TrueAnyAnyAnyAnyAnyReturns the name of the class
bool - Falsebool - Falsebool - FalsestrReturns True if the column exists in the table
strboolstrintAnyCreate a foreign key for a Foreign key field only if the foreign key does not exists
ForeignKeyFieldMethod to create a full text index
liststrCreate model table
AnyRemove the join row for (note_template, version). No-op if absent.
strstrDrop model table
Execute a raw SQL query. Can use the [TABLE_NAME] to replace by the table name
strAnyAnystrboolReturns the full name of the class
bool - Falsebool - FalsestrAnyAnystrModelSelectstrModelSelectAnystrlistDatabaseProxyReturns the (current) DbManager of this model
AbstractDbManagerModelMetadataAnyAnyReturns the table name of this class
str | NoneAnyReturns True if the index exists in the table
strboolGet all the classes that inherit this class
listAnyAnyAnyAnyAnyAnyReturns True if the class has a table name defined
boolAnyAnyAnyAnyAnyAnyPerforms full-text search on the field. Must be overrided by child class to work
strstr | NoneModelSelectAnyAnyAnyAnyAnyAnyInsert a (note_template, version) row if missing.
The denormalized form_template column is set from the version row, so callers pass it explicitly rather than re-deriving inside this method (the listener already has the version loaded). No update path: the (note_template, version) pair fully determines form_template.
strstrstrAny