]> git.0d.be Git - panikdb.git/blob - panikdb/service_messages/models.py
add support for service messages
[panikdb.git] / panikdb / service_messages / models.py
1 from django.db import models
2 from django.utils.translation import ugettext_lazy as _
3
4 from ckeditor.fields import RichTextField
5
6
7 MESSAGE_STYLES = (
8     ('info', _('Info')),
9     ('alert', _('Alert')),
10 )
11
12
13 class Message(models.Model):
14     style = models.CharField(_('Style'),
15             max_length=20, default='info', choices=MESSAGE_STYLES)
16     text = RichTextField(_('Description'), blank=True, default='')