Defining templates, creating new document from a template
[redakcja.git] / apps / catalogue / models / template.py
1 from django.db import models
2
3
4 class Template(models.Model):
5     """ Template of a document or its part """
6     
7     name = models.CharField(max_length=255)
8     content = models.TextField()
9
10     class Meta:
11         app_label = 'catalogue'
12
13     def __unicode__(self):
14         return self.name