ViewConfig
Model class with created_by and last_modified_by columns automatically provided
:param Model: [description] :type Model: [type] :return: [description] :rtype: [type]
config: Configid: strresource_model: ResourceModelscenario: Scenariostyle: TypingStyleview_type: ViewTypeInitialize self. See help(type(self)) for accurate signature.
bool - Truebool - Truebool - FalsedictReturns True if the model is saved in db, False otherwise
boolModelTypeViewConfigDTOstr | Nonestr | NoneRichTextBlockResourceViewAnyMethod 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
strboolAnyCreate 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
AnystrDrop 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 - FalsestrAnyAnystrOptionalGet by ID and throw 404 error if object not found
strModelTypelistliststrModelSelectstrModelSelectlistModelSelectDatabaseProxyReturns the (current) DbManager of this model
AbstractDbManagerModelMetadataAnyAnyreturn a view config that has same parameters
ViewConfigOptionalReturns 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 | NoneModelSelectAnyAnyAnyAnyAnyAnyAny