noc.main.models.template

Module Contents

noc.main.models.template.id_lock
noc.main.models.template.template_validator(value)
class noc.main.models.template.Template

Bases: noc.core.model.base.NOCModel

class Meta

Bases: object

app_label = main
db_table = main_template
verbose_name = Template
verbose_name_plural = Templates
ordering = ['name']
name
subject
body
_id_cache
_name_cache
__str__(self)
classmethod get_by_id(cls, id)
classmethod get_by_name(cls, name)
render_subject(self, LANG=None, **kwargs)
render_body(self, LANG=None, **kwargs)