better ordering for tags
[redakcja.git] / apps / catalogue / models / template.py
1 # -*- coding: utf-8 -*-
2 #
3 # This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 #
6 from django.db import models
7
8
9 class Template(models.Model):
10     """ Template of a document or its part """
11
12     name = models.CharField(max_length=255)
13     content = models.TextField()
14     is_main = models.BooleanField()
15     is_partial = models.BooleanField()
16
17     class Meta:
18         app_label = 'catalogue'
19
20     def __unicode__(self):
21         return self.name