TagValueModel
Table to store all the existing tag values
created_at: TypedDateTimeUTCid: TypedCharFieldlast_modified_at: TypedDateTimeUTCInitialize self. See help(type(self)) for accurate signature.
bool - Truebool - Falsebool - Falsebool - Truebool - FalsestrUnionReturns True if the model is saved in db, False otherwise
boolModelTypeSets the data
set force_insert to True to force creation of the object
set skip_hook to True to skip the before insert or update hook
SelfConvert the tag value model to a community tag value DTO
CommunityTagValueDTOTagValueModelDTOAnyMethod 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
strboolReturn the number of tag values for a tag key
TagKeyModelintAnyCreate a foreign key for a Foreign key field only if the foreign key does not exists
AnyMethod to create a full text index
liststrCreate model table
Create a tag value model
TagKeyModelUniondictbool - FalseTagValueModelCreate and save a tag value model
TagKeyModelUnionstr | Nonedict[str, typing.Any] | Nonebool - Falsebool - FalseTagValueModelAnyDrop model table
Execute a raw SQL query. Can use the [TABLE_NAME] to replace by the table name
strAnyAnystrModelSelectstrboolCreate a tag value model from a community tag value
CommunityTagValueDTOTagKeyModelTagValueModelUpdate the model from a DTO
TagValueModelDTOTagKeyModelTagValueModelReturns the full name of the class
bool - Falsebool - FalsestrAnyAnystrOptionalGet by ID and throw 404 error if object not found
strModelTypelistlistReturn all the tag values for a tag key
TagKeyModellistDatabaseProxyReturns the (current) DbManager of this model
AbstractDbManagerModelMetadataReturn the non-community tag values for a tag key, newest first
TagKeyModellistReturn the non-deprecated tag values for a tag key
TagKeyModellistAnyAnyReturns the table name of this class
str | NoneReturn the tag value model by its ID
strTagValueModel | NoneReturn the tag value model by its key and value
str | gws_core.tag.tag_key_model.TagKeyModelUnionTagValueModel | 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 | NoneModelSelectstrUnionModelSelectAnyAnyAnyReturn true if the tag value exists
str | gws_core.tag.tag_key_model.TagKeyModelUnionboolAnyAnyAnyUpdate a tag value model
strUnionUnionTagValueModelAny