Contents
If INCLUDE_DISPLAY_FIELDS is True, these fields will be included with the model.
Gets the name of the tag, this will try to retrieve the display name first if the display fields are available, if the display fields are not available the normal name will be returned.
Returns True or False, if the display fields are available.
Renders the instance, view Rendering Items for more information.
Renders the instance, view Rendering Items for more information.
Generic relation to a SuperTag
Renders the instance, view Rendering Items for more information.
Renders the instance, view Rendering Items for more information.
Holds a generic relation to an object to be processed at a later time, this model is only used when USE_QUEUE is set to True
SuperTag, SuperTaggedItem, SuperTagRelation and SuperTaggedRelationItem have a render method in order to correctly display its contents.
Default location for these templates are in supertagging/templates/render. For each model there is an additional folder:
For example the default template for a SuperTaggedItem would be “supertagging/templates/render/tagged_items/default.html”
This default template is the last resort, below is a detail list of template paths that will be checked first
template argument - this is a full path starting in your templates dir
Note
As stated in #2 of the list above, stype only applies to SuperTag and SuperTagRelation since SuperTaggedItem and SuperTaggedRelationItem doesn’t contain the stype field. It will simply not be part of the path.
SuperTag and SuperTagRelation has only it self returned in the context
SuperTaggedItem and SuperTaggedRelationItem has 2 conext variables